-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.73 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
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
addons:
apt:
packages:
- graphviz
install:
- pip install Sphinx codecov packaging
- "python -c $'import os, packaging.version as version\\nv = version.parse(os.environ.get(\"TRAVIS_TAG\", \"1.0\")).public\\nwith open(\"VERSION\", \"w\") as f: f.write(v)'"
- pip install -e .[test]
- cd docs
- make clean html
- cd ..
script:
# OVERRIDE pytest-defaults adopted in `setup.cfg`:
#
# Run doctests in latest Python; certainly not < PY3.6 due to unstable dicts.
# Also give `-m 'slow or not slow'` since `not slow` adopted in `setup.cfg`.
- |
if [[ "$TRAVIS_PYTHON_VERSION" = '3.7' ]]; then
pytest --cov=graphkit -m 'slow or not slow'
else
# Undo configs in setup.cfg
echo -e '[pytest]\nmarkers: slow' > pytest.ini
pytest --cov=graphkit
fi
deploy:
provider: pypi
user: graphkit-ci
password:
secure: Feb5dyGHNltCFNAdta/V7v9D/SZhtbyPJN7aPFSkgQNFUY/QZCR1CvXP6KO50ZRYN6ymbpmFMknxXAe3XsxaipkdYnWKcIYy0mVsETWKPO8+Yyom3KTTYqawzVqLxKvqXHTRVW+Xa+Rgum24DDLVq5rNlagozcmNILYJh0sHiQQp4N5w6agIfsTjEMqtbnffzNvpbCuz+nBs3stva0mS0CljhzLuih9N1f0so8LK/8AVK/hxiWY5TgAfml9F/cSyeCIyQhq76owH24ldf0AbSzqd8An53+UKeGznuogcUMMz0aQLChk0pjmUKcHxOruEr+ze9fSGdCMv+wBuOAFw+W3pRJwlRoaRbz+TVi9/Q9u5nThKkBA1TjSfujVrJBcJsMdMcm+69HDeyVNNaC2DewyNByfnBRTb1zdXTrDAiA2vKgAvfSu7gj+zx+d/h6BllqEW9zSpIMc3+scOVcVwm7skcK3BBRPuFc52EEEk5muGEXjUgB6voG0Dc61u7gPw/UoMl3HrN2pVeTXWyS91ZC0u9WiyLHQLeL/QS29X1HiTpHmaWI6pAzkp7U6i3L75SenIB4o9eiSBbFNW3N0Tw2mDRFK83DmzpGOjYzyV3ZQK6wcfnSbduWlq08YTzAUYCr+GviRaFAHjrq3qPDgcoknZsDRiJ5Qpmur0d5J8fCE=
on:
repo: yahoo/graphkit
branch: master
tags: true
python: 2.7
docs_dir: docs/build/html
after_success:
- codecov