-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
35 lines (29 loc) · 981 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
language: python
matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
# GitHub branch
branches:
only:
- master
# install package and dependencies
install:
- pip install coverage nose pytest pytest-cov
- pip install astropy
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then pip install numpy future scipy astropy progressbar2 sphinx sphinx-rtd-theme numpydoc travis-sphinx coveralls; fi
# run unit tests
script:
- python setup.py test
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then sphinx-apidoc -feo docs/source sf_tools/; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then travis-sphinx -v -o docs/build build -n -s docs/source; fi
# run coverage tests
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then coveralls; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then travis-sphinx -o docs/build deploy; fi
# notification settings
notification:
email: false