forked from bashtage/arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (94 loc) · 3.23 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
dist: trusty
sudo: required
language: python
env:
global:
- CYTHON=
- PATSY=
- OPTIONAL=
- NUMBA=
- COVERAGE=false
- USE_NUMBA=true
- STATSMODELS_MASTER=false
- DOCBUILD=false
- secure: "dCvSzHmiqumrvQDQJXaPukd2TEituoUJTRJeBrLfEg0f1ZtAkoEcCudXuissODo1s/e+zClEhn3GRMGZc9QxKI0w8VHWeyMDHjFhyl4wubi35biUpXijYgs6IMqqdIo5oKcnMR6jG8uzuzPGDCpZh49+DgGU5E7rGHBgJ5Tdo8s="
matrix:
fast_finish: true
include:
- python: 2.7
env:
- PYTHON=2.7
- USE_NUMBA=false
- COVERAGE=true
- python: 2.7
env:
- PYTHON=2.7
- NUMBA=0.24
- NUMPY=1.10
- SCIPY=0.16
- MATPLOTLIB=1.5
- PANDAS=0.16
- STATSMODELS_MASTER=true
- python: 2.7
env:
- PYTHON=3.4
- NUMPY=1.11
- SCIPY=0.17
- NUMBA=0.27
- MATPLOTLIB=1.5
- PANDAS=0.18
- python: 2.7
env:
- PYTHON=3.5
- COVERAGE=true
- python: 2.7
env:
- PYTHON=3.6
- COVERAGE=true
- DOCBUILD=true
before_install:
- git fetch --tags
- sudo apt-get -y install pandoc
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh
- chmod +x miniconda3.sh
- ./miniconda3.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda config --set always_yes true
- conda update --all --quiet
# Fix for headless TravisCI
- export DISPLAY=:99.0
- "sh -e /etc/init.d/xvfb start"
# Avoid noise from matplotlib
- mkdir -p $HOME/.config/matplotlib
# Build package list to avoid empty package=versions
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [[ ${NUMPY} ]]; then PKGS="${PKGS}=${NUMPY}"; fi;
- PKGS="${PKGS} scipy"; if [[ ${SCIPY} ]]; then PKGS="${PKGS}=${SCIPY}"; fi;
- PKGS="${PKGS} patsy"; if [[ ${PATSY} ]]; then PKGS="${PKGS}=${PATSY}"; fi;
- PKGS="${PKGS} pandas"; if [[ ${PANDAS} ]]; then PKGS="${PKGS}=${PANDAS}"; fi;
- PKGS="${PKGS} Cython"; if [[ ${CYTHON} ]]; then PKGS="${PKGS}=${CYTHON}"; fi;
- PKGS="${PKGS} matplotlib"; if [[ ${MATPLOTLIB} ]]; then PKGS="${PKGS}=${MATPLOTLIB}"; fi;
- PKGS="${PKGS} statsmodels"; if [[ ${STATSMODELS} ]]; then PKGS="${PKGS}=${STATSMODELS}"; fi;
- if [[ ${USE_NUMBA} = true ]]; then PKGS="${PKGS} numba"; if [[ ${NUMBA} ]]; then PKGS="${PKGS}=${NUMBA}"; fi; fi;
- conda create --yes --quiet -n arch-test ${PKGS} ${OPTIONAL} statsmodels
- source activate arch-test
- pip install flake8 nbconvert nbformat pytest coverage coveralls pytest-cov codecov pytest-xdist
- if [[ ${STATSMODELS_MASTER} = true ]]; then sh ./ci/statsmodels-master.sh; fi;
- if [[ ${DOCBUILD} = true ]]; then conda install sphinx ipython doctr numpydoc -c conda-forge; fi;
- if [[ ${DOCBUILD} = true ]]; then pip install guzzle_sphinx_theme; fi;
- export SRCDIR=${PWD}
- conda list
- export PYTHONHASHSEED=0
- export MKL_NUM_THREADS=1
install:
- python setup.py install
script:
- set -e
- flake8 arch
- pytest -n 2 --cov-config .coveragerc --cov=arch arch --durations=10
- python ci/performance.py
- if [[ ${DOCBUILD} = true ]]; then cd doc && make html && cd .. ; fi
- if [[ ${DOCBUILD} = true && ${TRAVIS_BRANCH} = "master" ]]; then doctr deploy doc; fi
after_success:
- if [[ ${COVERAGE} = true ]]; then coveralls --rcfile=${SRCDIR}/.coveragerc; fi
- if [[ ${COVERAGE} = true ]]; then codecov; fi