-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
118 lines (105 loc) · 4.79 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# The Travis build will test both Linux AND OSX distributions, but language needs to be
# overridden to "generic" for Mac, otherwise the build will fail until Python is downloaded
# via Homebrew (which is handled in the before_install.sh). Note that none of the test envs
# or wheels test/create artifacts on <64 bit Linux or Mac. All artifacts are 64-bit ONLY.
language: python
sudo: required
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
before_install:
- source build_tools/travis/before_install.sh
env:
global:
- PYMODULE=pmdarima
- TEST_DIR=/tmp/pmdarima
- OMP_NUM_THREADS=4
- OPENBLAS_NUM_THREADS=4
# Matplotlib variables:
- PMDARIMA_MPL_DEBUG="true"
- PMDARIMA_MPL_BACKEND="TkAgg"
- MPL_VERSION="2.2.3"
# So we don't test MPL
- TESTING_ON_TRAVIS="true"
# Deployment variables:
# - TWINE_REPOSITORY_URL="https://test.pypi.org/legacy/" # only for test
- TWINE_USERNAME="tgsmith61591.gh"
- secure: "nLu1oztl7hWoLZbUc3lWoTVC0x4feY7x3S0z2RzbbVg7EjoRUNS1do1bRxsNBvZt1ujQAmRN2hTA6gr66KtElHtKAMbbx7/MUdFvnWQdw6urVwapRxPyzHv5Yhg1+iBaKAeUWeSSX1QETsCbPgmu6vzxFfp1wlCg++kO9n0RsNSlc9TejgPyVRY+mMxFktbEydfXJCMVg6D0wHJ+No3l2Y0k2UNfzSwYy+a4JobX6uad+8z303mr9+1iQyfiQyTyiurAPw3nM/sSqizV0LBdjm4mCho1aopZwF7gfh4YwYLYuVz6btGIoR5fEoF2nCTOKFyehooPWyx0vllKoUZ5BJMsJEPYXQnDQulimAoBjaTt/2TFxjdyHEuK7gAMko19Vvb5209yVoi/+REfZ0qC3P1pvF5iHKTl9mEkuMwvr2UYaetH7IsZq610c7aZf0ygj/snx4SfkFLvl5LolSqqI3Mzb9vKsef1yrf/G5L4dARC8gALfz6DS0e2GhnJDJafDGXIlfnx+tG0bKs1+vTkI8R09P7BxgaCTEeAWUdycBE2wx4hD7a58rStvHNU8tunbtBhQgHkAx/k5Cwd32LCQazWJLSht0SCdkW8mnW+U5IkcHHh2/7kYQIw2gnEiwiNGiBuuZXPfeYJRd1AqsjkXk798jKV9Xg1GD14mHdL628="
matrix:
include:
# This environment tests Python 3.5 support on linux
- os: linux
dist: trusty
services:
- docker
env: DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_MKL="true"
NUMPY_VERSION="1.12.1" SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.9.0"
DEPLOY=true CACHEC=true DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
DOCKER_CONTAINER_NAME="pmdarimacontainer"
# This test runs on linux 3.6 & as of v0.9+, deploys python 3.6 wheel
- os: linux
dist: trusty
services:
- docker
env: DISTRIB="conda" PYTHON_VERSION="3.6.1" INSTALL_MKL="true"
SCIKIT_LEARN_VERSION="0.19" STATSMODELS_VERSION="0.9.0" DEPLOY=true CACHEC=true
NUMPY_VERSION="1.12.1" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
DOCKER_CONTAINER_NAME="pmdarimacontainer"
# This test runs on linux 3.7 & as of v1.1.0+, deploys python 3.7 wheel
- os: linux
dist: trusty
services:
- docker
env: DISTRIB="conda" PYTHON_VERSION="3.7.1" INSTALL_MKL="true"
SCIKIT_LEARN_VERSION="0.20.1" STATSMODELS_VERSION="0.9.0"
DEPLOY=true CACHEC=true NUMPY_VERSION="1.15.4"
DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
DOCKER_CONTAINER_NAME="pmdarimacontainer"
# This environment tests Python 3.5 support on MAC OS X
- os: osx
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.5"
NUMPY_VERSION="1.12.1" SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.9.0"
DEPLOY=true CACHEC=false
# This environment tests Python 3.6 support on MAC OS X
- os: osx
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.6"
SCIKIT_LEARN_VERSION="0.20" STATSMODELS_VERSION="0.9.0"
DEPLOY=true CACHEC=false
# This environment tests Python 3.7 support on MAC OS X
- os: osx
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.7"
SCIKIT_LEARN_VERSION="0.20" STATSMODELS_VERSION="0.9.0"
DEPLOY=true CACHEC=false
install: source build_tools/travis/install.sh
before_script: bash build_tools/travis/before_script.sh
script: bash build_tools/travis/test_script.sh
# we set +e to re-instate the error-tolerant state. The problem is Travis is broken on Mac OS
# builds right now due to Issue 6307 (https://github.com/travis-ci/travis-ci/issues/6307)
# and fails at the end of a successful build. This will allow the build to recover even if
# a non-zero status code is encountered. (had `- set +e`)
after_success:
- source build_tools/travis/after_success.sh # || echo "shell_session_update failed"
# Build the wheels every time so we can debug
- bash build_tools/travis/build_wheels.sh
before_deploy:
- bash build_tools/travis/after_wheel_build.sh
# TODO: do we want "always?"
notifications:
slack:
rooms:
- tgsmith61591-gh:mWyfLXzxRAHCKD2QRHWvHZaX#pyramid-cicd
on_success: always
on_failure: always
on_pull_requests: true
deploy:
provider: script
skip_cleanup: true
script: python -m twine upload --skip-existing dist/pmdarima-*
on:
tags: true # Upload on tagged releases
condition: "$DEPLOY = true"