-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
74 lines (68 loc) · 2.78 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
# Travis script that uses miniconda in place of the system installed python
# versions. Allows substantial flexability for choosing versions of
# required packages and is simpler to use to test up-to-date scientific Python
# stack
group: edge
dist: trusty
sudo: required
language: python
env:
global:
- secure: "aupv9PPJZh7WjV2fl8fnxvztT5HHPz0j3pPkaMrxWT5fhWhbL/RYSqkkCh+GZiYFnDToXEdiNLuj2UD3CsRNu1ry9RuI9f9KcBgL9udacu2XC00c8XMl1Puiy02RjHe17DAHmAyoTEcckDoHyoKHM6rfyYCjGEDoqJuW6VfJr0KdNUE9bZSdj+kDQgQT0cilaHywzLnHg0v7K83vp2MG0BELV4vcB/OU/BmFeekjqNWaYHDHP0Ur+WG7FoOpGyG3dqO+Hlutx8tXlwjVHgTjkd6vJOU/3AHjWFfrNd9Z6Pzi2afCBZjLXHOeHm8X4Be4Gd9EJnWpARRev+6bgXVCyVZsaRscXPsdl0ylmYFROiUqIlvnqjPRDTRhq4kA72Fvtsf6RzTHX0CdDyctVMw3RoasrA9yRRg7SQYuTn1yKCpEpSGeDWjHo1/PqyBTvGdAwTse9jitBxyw3lC3dXAQDpQo5Smk5ZFwBS+9T0tm8QR1P63Nv9TeK9yjsJe/cytb5ZP495FKBJ1iBntjhOfhoahKbcFcVZjyZZYQZ5f1pVcZoKI4iTuBZup060ZmDRXjwStR2N63za9DocY6oVIyHaLcrgiej8KqvBeqWCxNvMNdiw/4O47/4T6qsvsjdceSUBkR8yPyuL3NfkZXUzzxdWwkNKHynxYYLprKZqHqfUU="
matrix:
fast_finish: true
include:
- env:
- PYTHON=2.7
- NUMPY=1.9
- CYTHON=0.25
- env:
- PYTHON=3.4
- NUMPY=1.10
- CYTHON=0.25
- env:
- PYTHON=3.5
- CYTHON=0.26
- env:
- PYTHON=3.6
before_install:
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh; fi
- chmod +x miniconda3.sh
- ./miniconda3.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda config --set always_yes true
# Disable until fixed
# - conda update --all --quiet
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
- PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
- export BUILD_DIR=$PWD
- conda create -n randomstate-test ${PKGS} pytest pip setuptools matplotlib pyyaml nose --quiet
- source activate randomstate-test
- pip install tempita sphinx guzzle_sphinx_theme ipython coverage coveralls pytest-cov codecov -q
- export CYTHON_COVERAGE=1
install:
- python setup.py develop
script:
- set -e
- pytest --cov-config .coveragerc --cov=randomstate randomstate --cov-report xml --cov-report term
- |
if [ ${PYTHON} = 3.5 ]; then
conda install -c conda-forge doctr
cd ${BUILD_DIR}/doc
make html
cd ${BUILD_DIR}
doctr deploy doc
if [[ ${TRAVIS_TAG}} ]]; then
doctr deploy doc --no-require-master
fi;
fi;
- |
if [ ${PYTHON} = "3.6" ]; then
cd ${BUILD_DIR}/randomstate
python performance.py;
fi
after_success:
codecov