forked from metabrainz/brainzutils-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (21 loc) · 899 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
sudo: required
language: python
services:
- docker
install:
- docker-compose -f test/docker-compose.py2.yml -p brainzutils_py2_test build
- docker-compose -f test/docker-compose.py3.yml -p brainzutils_py3_test build
script:
- docker-compose -f test/docker-compose.py2.yml -p brainzutils_py2_test up -d redis
- docker-compose -f test/docker-compose.py2.yml -p brainzutils_py2_test run --rm test
dockerize
-wait tcp://redis:6379 -timeout 10s
py.test
- docker-compose -f test/docker-compose.py2.yml -p brainzutils_py2_test down
- sleep 2
- docker-compose -f test/docker-compose.py3.yml -p brainzutils_py3_test up -d redis
- docker-compose -f test/docker-compose.py3.yml -p brainzutils_py3_test run --rm test
dockerize
-wait tcp://redis:6379 -timeout 10s
py.test
- docker-compose -f test/docker-compose.py3.yml -p brainzutils_py3_test down