forked from fecgov/fec-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (39 loc) · 3.31 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
50
51
language: python
sudo: false
cache: false
python:
- "3.4"
env:
global:
- secure: "CnuWnD2WQAlxlgJGY4IdDlq3ka7qn5kQjCahAlsYHazjv0RIzcIlzoHK0F7VOxp14Vx2ZNbEZkhglsPx748ZcB4P1DYlQxcTRqAQFi7XRqpnez3yKIeObti6asjMdLT/6R8MdeiTgaAcLRnZ5IB/QHxhBC6DbnNM1xYsPC9YPNpLXZOq0yJVxdGhBfMKPQaRMzOpry1g4en35BKKDZzy1CQuQV24MgAvBuEAWvrM/G7RT9pEYFnCnPQRJaU2Gj0NxcJ2yZgw+8mZvqdgk3SGlxBSlUp6GryV2RYqcR2vosfwaUtHDIOPVXY4jYhqqHIwq9r/uSmz5hva21jfs2xLS4Ib+4z4kV1OliENjF1pN58lKcy8erItxdAPi7KFZsLfqOLFydwUH7CcLiAaYR0tN8AqnIoAG+l47Em8rTm+AQymYqXeXcRvHoPtBA/Tt7CNMFaXlTmHWpvMruwC4mAMQD1TNYaZFkMFh/MbLLQnpw94Fu3SCyiUVOXHBV0f0qW0sRUTo7fGeX4w1lsErvwYSM9/l7ys73zFXSCVsadbzWcvCtb+jh9xAmOIasYV5M3SETSKQ8+js/eGMsdONajmLGSDILSK1J+pkTrcrmh/DXbsK1RNoxlVFfINLX4nl1mA5qp5ct4ry1oTsii+6iBY0heQvr9QdwZkzXB+hw6VIYo=" # FEC_CF_USERNAME
- secure: "UYdDAAF93m3vvsfYKWyVhiEf0RKTtZriY4OM6fmRCDGCwVNJMnqu2eoHjzjaSc81UtFdHbFjwsBifr1CeMjTswJZGqIKnItkO5vd5/b8molIOUzJkieWA/A1mLb5mbF4XDr/s9hI2l3ChjRo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VkGPfuWRXVhPCmSlHZXqM22gVois5ch97FEm7sgLlJP5hHg1q+utvXV4YDM0m+5SicjGeTyh7ZNszBiMuCu9Na5NaUyhb3XS8niLPwXUzNKcUs0NXckakpqBxstAE4Zyqf3HmmzFQCNvdrFnk6fuRXo1nxtRi1K3N/zf4k=" # DJANGO_SECRET_KEY this is a random key unrelated to prod but needed for django to run build commands with production settings
before_install:
- "pip install --upgrade pip setuptools"
before_script:
- travis_retry pip install -U pip wheel
- travis_retry pip install -r requirements.txt
- . $HOME/.nvm/nvm.sh
- nvm install v5.5.0
- nvm use v5.5.0
- travis_retry npm install
- npm run build
script:
- npm run test-single
after_success:
- travis_retry npm install codecov.io
- cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
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 run build
- DJANGO_SETTINGS_MODULE='fec.settings.production' python fec/manage.py collectstatic --noinput
- DJANGO_SETTINGS_MODULE='fec.settings.production' python fec/manage.py compress
deploy:
provider: script
skip_cleanup: true
script: invoke deploy --branch $TRAVIS_BRANCH --yes
on:
all_branches: true