-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (27 loc) · 898 Bytes
/
.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
sudo: required
language: python
services:
- docker
python:
- "3.6"
before_script:
- docker-compose build
script:
- docker-compose run --rm web bash -c "flake8 . &&
python wait_for_postgres.py &&
./manage.py test"
# after_success:
# - if [ "$TRAVIS_BRANCH" == "master" ]; then
# docker login --username=_ --password="$HEROKU_AUTH_TOKEN" registry.heroku.com;
# docker tag web registry.heroku.com/exobrain_api-prod/web;
# docker push registry.heroku.com/exobrain_api-prod/web;
# fi
# - if [ "$TRAVIS_BRANCH" == "qa" ]; then
# docker login --username=_ --password="$HEROKU_AUTH_TOKEN" registry.heroku.com;
# docker tag web registry.heroku.com/exobrain_api-qa/web;
# docker push registry.heroku.com/exobrain_api-qa/web;
# fi
notifications:
email: false
cache:
pip: true