forked from cfpb/regulations-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1.38 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
language: python
python:
- '2.6'
- '2.7'
env:
global:
- secure: KUZAbAiGyBfiCePYo0MJVpu4YgWvYsPVxrhMOmN3vyEP2O1PpMcFJR/ESyK9mDCJ4Xck5Fc3sDfjRCDW2N6AdVPe313ERIAUxHEw9wFoeRuYl/0B/31KMSO/IjHmHwc1wW2vgtlLP/P3pa3vwr1jsJAhcrF3FBw0EnW5sz7OZQY=
- secure: SOpgDODtfEwNPWssGj5CQfQKBFxbJ1w3HZGbG/B9iMS4DtMz/8pBY9G4uzF0KLpNfsllzjOSlMmTFn0tQIE2QR+ifkuIBl+ksvC2/ZagNNRVg7mSe427WeGY4SnH1tvBbarFbJYlFgGjnRJylwyUar7RGqEQ4My2e6/PHreGx6I=
before_script:
- if [ "$TRAVIS_PULL_REQUEST" == false ] && [ "$SAUCE_USERNAME" ] && [ "$SAUCE_ACCESS_KEY" ]; then SAUCE_OK=1; else SAUCE_OK=0; fi
- function START_SAUCE_CONNECT { curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash & }
- if [ "$SAUCE_OK" == 1 ]; then START_SAUCE_CONNECT; fi;
install:
- pip install zc.buildout distribute selenium nose-testconfig
- buildout
- echo "yes" | sudo add-apt-repository ppa:chris-lea/node.js
- sudo apt-get update
- sudo apt-get install nodejs phantomjs
- sudo npm install -g grunt-cli grunt-init bower
- sudo npm install
- bower install
- cp example-config.json config.json
script:
- ./require.sh
- ./bin/test
- ./dummy_api/start.sh
- echo 'API_BASE = "http://localhost:8282/"' >> regulations/settings/local_settings.py
- ./run_server.sh &
- sleep 5
- if [ "$SAUCE_OK" == 1 ]; then grunt nose; fi