-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
38 lines (33 loc) · 925 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
31
32
33
34
35
36
37
38
sudo: enabled
language: python
python:
- "3.6"
before_install:
- sudo rm /usr/local/bin/docker-compose
- sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose build
script:
- docker-compose up -d
- sleep 10
- docker-compose run web coverage run --source=. manage.py test
- docker-compose run web coverage report
after_success:
- docker-compose run web coveralls
deploy:
- provider: heroku
skip_cleanup: true
api_key:
secure: ${HEROKU_KEY}
app: gbi-crossdata-staging
on:
repo: fga-eps-mds/2018.2-GamesBI
branch: develop
- provider: heroku
skip_cleanup: true
api_key:
secure: ${HEROKU_KEY}
app: gbi-crossdata-production
on:
repo: fga-eps-mds/2018.2-GamesBI
branch: master