-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (26 loc) · 826 Bytes
/
.travis.yml
File metadata and controls
32 lines (26 loc) · 826 Bytes
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
language: python
python:
# - "3.2" # coverage seems to fail.
# - "3.3" # seaborn is incompatible.
# - "3.4" # hangs on pipenv install
#- "3.5"
# - "3.5-dev"
- "3.6"
# - "3.6-dev"
# - "3.7-dev"
sudo: required
dist: xenial
services:
- docker
install:
- ./manage up -d --build
- docker-compose exec app sh -c "apt-get update && apt-get install -y netcat curl"
script:
- docker-compose exec app sh -c "nc -vz cache 6379"
- docker-compose exec app sh -c "nc -vz db 5432"
- docker-compose exec app sh -c "curl localhost:5000/api/ping"
- docker-compose exec app sh -c "yarn test"
- docker-compose exec app sh -c "pytest --cov=candis.app.server.api src/candis/app/server/api/tests"
after_script:
- docker-compose stop
- docker-compose rm -f