forked from JRCSTU/wltp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (55 loc) · 1.44 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
60
## TravisCI config
#
git:
depth: 3
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
matrix:
allow_failures:
# due to annotations
- python: "3.6"
- python: "3.9-dev"
addons:
apt:
packages:
- graphviz
install:
- pip install pytest -U
- pip install -e .[test]
# pip fails to install `pydot `from graphtik's extras (report to https://github.com/pypa/pip#988)
- pip install graphtik[sphinx]
- pip list
## Re-create `*.ipynb` files from the paired `*.py` "py:percent" files.
- ./Notebooks/recreate_ipynbs.sh
script:
- ./Notebooks/recreate_pyalgo_h5.sh
- |
if [[ "$TRAVIS_PYTHON_VERSION" = '3.7' ]]; then
echo "+++ Checking all TCs, DTs & Coverage....";
pytest \
--doctest-glob=README.rst \
--doctest-modules \
--cov=wltp.experiment \
--cov=wltp.datamodel \
--cov=wltp.engine \
--cov=wltp.vehicle \
--cov=wltp.vmax \
--cov=wltp.downscale \
--cov=wltp.invariants \
--cov=wltp.io \
--cov=wltp.utils \
--cov=wltp.cycles
else
echo "+++ Checking only TCs....";
pytest
fi
- python setup.py install
- python setup.py build
- python setup.py sdist bdist_wheel
after_success:
- pip install coveralls
- coveralls