-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 1.19 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
51
52
53
language: python
python:
- "3.6"
env:
global:
- DOWNLOADS=$HOME/downloads
- CACHE=$HOME/cache
- DERIVATIVES=tests/data/derivatives
- SOURCE_PATH=$TRAVIS_BUILD_DIR/docs/source
- API_PATH=$SOURCE_PATH/api
- BUILD_PATH=$TRAVIS_BUILD_DIR/docs/build
- HTML_PATH=$TRAVIS_BUILD_DIR/docs/build/html
cache:
- directories:
- $CACHE
- $HOME/.cache/pip
install:
# install requirements
- pip install numpy scipy -U # update to latest numpy
- pip install scipy==1.2 # statsmodel 0.9 cannot handle scipy 1.3
- pip install -U pytest pytest-cov codecov
- pip install Cython
- pip install scikit-image popeye
- pip install -e git+https://github.com/gpiantoni/sanajeh.git#egg=sanajeh
script:
- py.test --cov=bidso tests
after_success:
- codecov
- pip install sphinx sphinx_rtd_theme
- sphinx-apidoc -fMeT -o $API_PATH bidso
- sphinx-build -T -b html -d $BUILD_PATH/doctrees $SOURCE_PATH $HTML_PATH
notifications:
email: false
deploy:
- provider: pypi
user: $PYPI_USER
password: $PYPI_PASSWORD
on:
tags: true
- provider: pages
skip_cleanup: true
target_branch : gh-pages
local_dir : docs/build/html
repo : gpiantoni/bidso
github_token : $GITHUB_TOKEN