-
Notifications
You must be signed in to change notification settings - Fork 169
/
.travis.yml
59 lines (50 loc) · 1.71 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: shell
services:
- docker
os: linux
dist: bionic
git:
depth: 1
notifications:
email: false
env:
matrix:
- PYTHON_VER=python=3.8 SKLEARN_VER=scikit-learn~=0.22.0 EXTRAS=development
- PYTHON_VER=python=3.8 SKLEARN_VER=scikit-learn~=0.21.0 EXTRAS=development
- PYTHON_VER=python=3.7 SKLEARN_VER=scikit-learn~=0.22.0 EXTRAS=development
- PYTHON_VER=python=3.7 SKLEARN_VER=scikit-learn~=0.21.0 EXTRAS=development
- PYTHON_VER=python=3.7 SKLEARN_VER=scikit-learn~=0.20.0 EXTRAS=development
- PYTHON_VER=python=3.7 SKLEARN_VER=scikit-learn~=0.19.0 EXTRAS=development
- PYTHON_VER=python=3.6 SKLEARN_VER=scikit-learn~=0.22.0 EXTRAS=development
- PYTHON_VER=python=3.6 SKLEARN_VER=scikit-learn~=0.21.0 EXTRAS=development
- PYTHON_VER=python=3.6 SKLEARN_VER=scikit-learn~=0.20.0 EXTRAS=development
- PYTHON_VER=python=3.6 SKLEARN_VER=scikit-learn~=0.19.0 EXTRAS=development
before_install:
- docker build
-t sklearn-porter
--build-arg EXTRAS=${EXTRAS}
--build-arg PYTHON_VER=${PYTHON_VER}
--build-arg SKLEARN_VER=${SKLEARN_VER} .
- docker run
--detach
--entrypoint=/bin/bash
--name test
-t sklearn-porter
script:
- docker exec -it test ./docker-entrypoint.sh
pytest tests -v
--cov=sklearn_porter
--disable-warnings
--numprocesses=auto
-p no:doctest
-o python_files="EstimatorTest.py"
-o python_functions="test_*"
after_success:
- test ${PYTHON_VER} = "python=3.7" &&
test ${SKLEARN_VER} = "scikit-learn~=0.21.0" &&
docker exec -it test ./docker-entrypoint.sh
codecov
--token ${CODECOV_TOKEN}
--name "${TRAVIS_COMMIT}"
--env ${PYTHON_VER}
${SKLEARN_VER}