forked from ABostrom/sktime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (52 loc) · 1.77 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
54
55
56
57
58
59
60
# whitelist the following branches for building
branches:
only:
- master
- dev
dist: trusty
sudo: false
language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
include:
# add more combinations here as per requirement
- env: PYTHON_VERSION="3.7" NUMPY_VERSION="1.15" SCIPY_VERSION="1.1"
SKLEARN_VERSION="0.20" PANDAS_VERSION="0.24" STATSMODELS_VERSION="0.9"
install:
# install miniconda
- deactivate
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- MINICONDA_PATH=/home/travis/miniconda
- chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
- export PATH=$MINICONDA_PATH/bin:$PATH
- conda update --yes conda
# create the testing environment
- conda create -n testenv --yes python=$PYTHON_VERSION pip
- source activate testenv
- conda install -n testenv --yes numpy==$NUMPY_VERSION scipy==$SCIPY_VERSION scikit-learn==$SKLEARN_VERSION pandas==$PANDAS_VERSION statsmodels==$STATSMODELS_VERSION cython nose pytest pytest-cov sphinx jupyter
- pip install sphinx_rtd_theme
- pip install scikit-posthocs
- pip install nbsphinx
- python setup.py build_ext -i
script:
- mkdir for_test
- cd for_test
- pytest -v --cov=sktime --pyargs ../sktime --cov-report html
after_success:
- cd ../documentation
- make html
deploy:
- provider: pages
skip-cleanup: true
local_dir: "./documentation/build_doc_site/html"
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: false
on:
branch: master
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master