forked from fecgov/openFEC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (34 loc) · 1.27 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
language: python
sudo: false
cache: pip
python:
- "3.4"
addons:
postgresql: "9.4"
env:
global:
- secure: "L0e1dTMLeUQGTrDfmWkTOUvg/zpQ1b8yidnZvI/nGVKW9OY1r4VqKc+tPLWtb9/e8D+jBUKmomjYR1TYL8xmm1DxWThx5AESr4FG6kndsUrDAxlG7PRZECumoG4FehsbPVKr5OP+ZC+GZY6V/6NdvijNKxvSae9zda3yCaGu7EE=" # FEC_CF_USERNAME
- secure: "qpKjTwlaNDdbFFO5oqDJ9PsVFsxowYbh0z4whQSjip7F2JWpUOT4ympPoeNikmVSevuxQkCCYsT8AnrSWyhR5I9Lg4xEoOezO+gRfY/sVawX3Obnwv46dUsvxaoStCTIwpmTxqyLZaRn7VkgPrnW+rEn9sIardgTm9RLuTa3JmA=" # FEC_CF_PASSWORD
before_script:
- psql -c 'create database "cfdm_unit_test";' -U postgres
- travis_retry pip install -U pip wheel
- travis_retry pip install -U -r requirements.txt
- travis_retry pip install -U -r requirements-dev.txt
- travis_retry npm install -g swagger-tools
script: py.test
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.15.0"
- tar xzvf $HOME/cf.tgz -C $HOME
- travis_retry cf install-plugin autopilot -f -r CF-Community
- npm install
- npm run build
deploy:
provider: script
skip_cleanup: true
script: invoke deploy --branch $TRAVIS_BRANCH --yes
on:
all_branches: true