forked from felix-lau/ebu_adm_renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (28 loc) · 766 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
language: python
os: linux
services: docker
sudo: required
matrix:
include:
- env: PYTHON_VERSION=2.7
- env: PYTHON_VERSION=3.6
- env: PYTHON_VERSION=3.7 COVERAGE=true
before_install:
- docker run -d --name linux -v $(pwd):/travis python:${PYTHON_VERSION}-stretch tail -f /dev/null;
docker ps
install:
- docker exec -t linux bash -c "
apt-get update -qy &&
apt-get install -y libsndfile1 &&
pip install tox codecov"
script:
- docker exec -t linux bash -c "
cd /travis &&
tox -e py${PYTHON_VERSION//./}"
after_success:
- |
if [[ "${COVERAGE}" == "true" ]]; then
docker exec -t linux bash -c "
cd /travis/.tox/py${PYTHON_VERSION//./} &&
codecov -t ${CODECOV_UPLOAD_TOKEN}"
fi