Skip to content

Commit 52e13ad

Browse files
effigiesoesteban
authored andcommitted
CI: Add Travis config
1 parent 8c96e45 commit 52e13ad

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# vim ft=yaml
2+
os: linux
3+
dist: xenial
4+
5+
language: python
6+
cache: pip
7+
8+
python:
9+
- 3.5
10+
- 3.6
11+
- 3.7
12+
- 3.8
13+
14+
env:
15+
global:
16+
- CHECK_TYPE="tests"
17+
- INSTALL_DEPENDS="pip setuptools"
18+
- DEPENDS="-r min-requirements.txt"
19+
20+
before_install:
21+
- python -m pip install --upgrade pip virtualenv
22+
- virtualenv --python=python /tmp/venv
23+
- source /tmp/venv/bin/activate
24+
- python --version
25+
- python -m pip --version
26+
- python -m pip install --upgrade $INSTALL_DEPENDS
27+
- python -m pip --version
28+
29+
install:
30+
- if [ -n "$DEPENDS" ]; then python -m pip install $DEPENDS; fi
31+
- python -m pip install .
32+
- python -c "import sdcflows; print(sdcflows.__version__)"
33+
34+
before_script:
35+
- travis_retry python -m pip install "sdcflows[$CHECK_TYPE]"
36+
37+
script:
38+
- pytest -n 2 -v --cov sdcflows --cov-report xml:cov.xml --doctest-modules sdcflows
39+
40+
after_script:
41+
- python -m pip install codecov
42+
- python -m codecov --flags travis --file cov.xml -e $TRAVIS_JOB_NUMBER

0 commit comments

Comments
 (0)