-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
30 lines (30 loc) · 947 Bytes
/
.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
sudo: false
dist: xenial
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
addons:
apt:
packages:
- pandoc
- pandoc-citeproc
install:
- pip install --upgrade pip
- pip install --upgrade virtualenv
- if [ ${TRAVIS_PYTHON_VERSION:0:3} == "2.7" ]; then pip install virtualenv==20.0.5; fi
- pip install tox-travis
- pip install scikit-build
# If the last tag is more than 50 commits away, we need to fetch more for
# the scm_version module to determine the version.
- git fetch --depth=1000
script:
# Piping through cat does less buffering of the output but can consume the
# exit code
- tox | cat; test ${PIPESTATUS[0]} -eq 0
after_success:
- pip install codecov
- codecov --disable search pycov gcov --file build/test/coverage/py_coverage.xml
- if [ ${TRAVIS_PYTHON_VERSION:0:3} == "3.7" ]; then pip install travis-sphinx; travis-sphinx -o docs/_build/html -v deploy -b sphinx,master; fi