This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
38 lines (38 loc) · 2.34 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
language: python
sudo: false
python:
- 3.5.1
node:
env:
global:
- CF_USERNAME_PRODUCTION=cb4feb94-4695-45bb-9d54-73adfa4bed76
- secure: "g2eDqkEhlaG9jCfH3qS0+LyTDL6FZ4O6ju0uFM1OJ8fmz3FjfzdZ4F7BNCMrC8ZeH/tkR8zisMJnUBOTlA0n78/jcKJNrQYTYrDYEWCzlS80q07rZrqBmfxruFwxwVQwqCIx9wVpoqSKTewO+mLgAXW2YkWSMKQbPYm2oDaAeqlIuRi6YCWQ7PYhyc7P4PND4Drhz+fkPRsOOe67MLrHAgMpXk/aiU2uWw1UctSCTtPYYj8V6E7nl4DRHVT8RReMF/bx6z7aKRBVGtQoQWuXnpLGc2+2WAM4rAthGdEZHAM92NNhQDP1BhshlaMUcN/3TYyj3DzxQ21CxuCiHYhHzuoufKCpbPc/XBOZ1uw07NRa/LM63Boue0TmEO5qUTsSCTSEMhasf7XxxK30ojVXyYTSNcLuuQ9vpBn10mLnlcceuHE1NWxqSbr1T2fdHox94T3S7oGekNNBIT7wXvCC2WHpHaxbXXzoc+SL/x+RqntwNaoRN6Hmx6udNyavLSqGbIj9FP/GOHzFTvNiNO+Rdr+DPkwozWUT1Pw0t7604I1jSuPKDz7enixdECSa1RIRCLqGnoyH7E3uapr/I8Fs8tKoYS76j/F0NM0Z9auf9SvqOXCATMWxg9F1EsTNiUEEd78bIr+23zajXJRek2JNX1byPGzeeJIcIVFqcl763MU="
- CF_USERNAME_STAGING=711e2876-d872-4c7c-8046-a29d9dfa3e93
- secure: "Kvx7PtBvytpixhGoj8iTIzjpNgtNh7JvMEeQ48+RR7wVHzc5Nz3i5t6qNLLQcCLdrNN3z3tu6Y+PpxOtHIso9nwnpO1iqr+S3CUDxOZmiH3Xgm/8NwF6l+VTItNIY5ANigX8Kj/pb3X1H0XSaZ0sNffl86CltPkBl9ViiSGWo0d2xERHBpsggp+3Zx9Ui5aQWoUP/VWDxbVWH1IftRJ22QgyP28SiZxA5tpFij8T0vQd2DzrcVOnwskbU4rMKaOz1KqsIMQ/KwW+Y7lJeDX6N2TevsynAGGYPcz7Z+fOPnvFFjmxtxI9c7g2cUuH6ujnXuSiucxeCLnYY3EKtGpaTxWjaowmLrciuB2mVLFBL738+oYcURTKY55F0ojWtkfHVoQUDGgjzIwhwjG19CB6a/1tTHkVBnz2yC4qdUSBqQBra+qII/8KsYVep0zvA1zS6keNsRIXpqrz0uz4uWMxvAFRW+iuDzRuFEjbk7CfezohvzSea2vgnc/k5rHYmxQopwW+DmUK4TBuorew+iIGULU+Hsj2Qop/xxFV8JVd5sr0EblLEHCWNraUYmXsXlxCKsR6rFma2zwZTOrtQm0jl3ZCxO1ebOdH6QbKH+3bbuDneb4RzdL8vx8Yg89+a12Rva4TghpWtWzrVLFfEIqVDy25ntsxnIqjebVd0XW3aMA="
before_install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 6.1.0
install:
- pip install -r requirements.txt
- cd app
- npm install
- cd ..
- psql -c 'create database travis_ci_test;' -U postgres
script:
- python tests.py
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
- cf install-plugin autopilot -f -r CF-Community
cache: pip
deploy:
- provider: script
script: "./deploy.sh staging"
skip_cleanup: true
on:
branch: develop
- provider: script
script: "./deploy.sh prod"
skip_cleanup: true
on:
branch: master