forked from dlareau/puzzlehunt_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (31 loc) · 846 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
39
language: python
services:
- docker
sudo: required
env:
global:
- DB_NAME=puzzlehunt_db
- DB_USER=hunt
- DB_PASSWORD=test
- DJANGO_SECRET_KEY=test_secret_key
- DOCKER_COMPOSE_VERSION=1.23.2
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- pip install coveralls flake8
- docker-compose build
- docker-compose up -d
script:
- docker-compose exec app coverage run
- docker-compose exec app coverage report
- flake8 huntserver
after_script:
- docker-compose stop
- docker-compose rm -f
after_success:
- cp .coverage .coverage.extra
- coverage combine
- coveralls