-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 943 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: python
sudo: false
matrix:
include:
- python: 2.7
- python: 3.6
env: DEPLOY_DOCS=ON
install:
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install --upgrade wheel
- pip install --only-binary=numpy,scipy numpy scipy
- pip install twine
- pip install sphinx
- pip install numpydoc
- pip install sphinx_rtd_theme
- pip install matplotlib
- pip install python-coveralls
- python setup.py build
- pip install pytest>=3.6 pytest-cov pep8 pytest-pep8
script:
- |
if [[ "${DEPLOY_DOCS}" == "ON" ]]; then
cd docs
make html
touch _build/html/.nojekyll
fi
deploy:
- provider: pages
skip_cleanup: true
github_token: $GH_KEY
local_dir: docs/_build/html
on:
branch: master
condition: $DEPLOY_DOCS == ON
- provider: script
script: ./scripts/upload_pypi.sh
skip_cleanup: true
on:
tags: true