forked from fecgov/openFEC-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (37 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
sudo: false
cache: pip
python:
- "3.4"
env:
global:
- secure: "Q0GUBC4Si9WJ4eZV9KDIDe8LifLRawqW0wuw3bhZOANdYNPbkSjX4aaeOh5v6Qz437tCt3ewLpMsXINWyGQ9/hVEUAXXe+14Gu4cYwvclQFYu4udhnN1OUeIb6ryH2MDHw1ie0+6qXuvTXYxJSntk0zTriWPd6/u8jUyXhB4fS8=" # FEC_CF_USERNAME
- secure: "VsFWJ0K2AbtU5i+P4TcTGmpbdIYIZ1wucqw+DF60F/KnNx3CMN/Nda9ww+OGq9fFky9sxAqcq+M3KO6+XvcTzojuk9dwwWfw8JagCJgsuKzjS0LHcx1WPAF9+RBvrXALV3V1q93ANu/DecDsmhKHF5ixrsvSUP3v37M9Qm5+vnM=" # FEC_CF_PASSWORD
before_script:
- travis_retry pip install -U pip wheel
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r requirements.test.txt
# Use production version of node.js
- . $HOME/.nvm/nvm.sh
- nvm install v5.5.0
- nvm use v5.5.0
- travis_retry npm install
- npm run build
script:
- py.test
- npm run test-single
after_success:
- travis_retry pip install codecov
- codecov
before_deploy:
- export PATH=$HOME:$PATH
- travis_retry curl -L -o $HOME/cf.tgz "https://cli.run.pivotal.io/stable?release=linux64-binary&version=6.22.2"
- tar xzvf $HOME/cf.tgz -C $HOME
- travis_retry cf install-plugin autopilot -f -r CF-Community
- npm run build
deploy:
provider: script
skip_cleanup: true
script: invoke deploy --branch $TRAVIS_BRANCH --yes
on:
all_branches: true