Skip to content

Commit 903f08b

Browse files
committed
FEAT(CI): +Python3.8
1 parent 5ca92eb commit 903f08b

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

.travis.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
language: python
22
python:
3-
- '3.6'
4-
- '3.7'
3+
- "3.6"
4+
- "3.7"
5+
- "3.8"
56
addons:
67
apt:
78
packages:
8-
- graphviz
9+
- graphviz
910
install:
10-
- pip install Sphinx codecov packaging
11-
- 'python -c $''import os, packaging.version as version\nv = version.parse(os.environ.get("TRAVIS_TAG",
12-
"1.0")).public\nwith open("VERSION", "w") as f: f.write(v)'''
13-
- pip install -e .[test]
14-
- cd docs
15-
- make clean html
16-
- cd ..
11+
- pip install Sphinx codecov packaging
12+
- 'python -c $''import os, packaging.version as version\nv = version.parse(os.environ.get("TRAVIS_TAG",
13+
"1.0")).public\nwith open("VERSION", "w") as f: f.write(v)'''
14+
- pip install -e .[test]
15+
- cd docs
16+
- make clean html
17+
- cd ..
1718
script:
18-
# OVERRIDE pytest-defaults adopted in `setup.cfg`:
19-
#
20-
# Run doctests in latest Python; certainly not < PY3.6 due to unstable dicts.
21-
# Also give `-m 'slow or not slow'` since `not slow` adopted in `setup.cfg`.
22-
- |
23-
if [[ "$TRAVIS_PYTHON_VERSION" = '3.7' ]]; then
24-
pytest --cov=graphtik -m 'slow or not slow' --log-level=DEBUG
25-
else
26-
# Undo configs in setup.cfg
27-
echo -e '[pytest]\nmarkers: slow' > pytest.ini
28-
pytest --log-level=DEBUG --cov=graphtik
29-
fi
19+
# OVERRIDE pytest-defaults adopted in `setup.cfg`:
20+
#
21+
# Run doctests in latest Python; certainly not < PY3.6 due to unstable dicts.
22+
# Also give `-m 'slow or not slow'` since `not slow` adopted in `setup.cfg`.
23+
- |
24+
if [[ "$TRAVIS_PYTHON_VERSION" = '3.7' ]]; then
25+
pytest --cov=graphtik -m 'slow or not slow' --log-level=DEBUG
26+
else
27+
# Undo configs in setup.cfg
28+
echo -e '[pytest]\nmarkers: slow' > pytest.ini
29+
pytest --log-level=DEBUG --cov=graphtik
30+
fi
3031
deploy:
3132
provider: pypi
3233
user: __token__
@@ -40,4 +41,4 @@ deploy:
4041
tags: true
4142
python: 3.7
4243
after_success:
43-
- codecov
44+
- codecov

0 commit comments

Comments
 (0)