-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
.travis.yml
114 lines (102 loc) · 5.1 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
# 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=pyramid
- TEST_DIR=/tmp/pyramid
- OMP_NUM_THREADS=4
- OPENBLAS_NUM_THREADS=4
# - TWINE_REPOSITORY_URL="https://test.pypi.org/legacy/" # only for test
- TWINE_USERNAME="tgsmith61591.gh"
- secure: CBeKNP+qy0Jtg8SqM6FDT4Qfn8RVO25sYEcg518wRczQcSpIO0E5bTjBoDGZdl6WguG8QCYLNTt3ll3NY1AntVSVG5m0X6dyHRN+hTOJw59KmQcE7UXvhvwpA98DEnXRPf2CCBXZnDDyYmhHH6c0VlCHhurvMfs6f9JhUOR7yJvz5pMg42uP0at2odkNa/G086+6+yVnkt/rfYYXLgxAOVOfbt7GyLiPp7CX3WenCCroH9gw6FQVsOw+swEZ7xYep4VgaO029b+nExFNjlA9MXB1i3oVVkRBTk8UfsOg82kjfi4SYSfI/qVVY7ivcxbjR/K7HkMi34Mcq/0KTtmRFaO3++hcvPEHuk0CmtN9zprDO/Muan2HBytG/p6ZbK9lEA1coOcREl/4wK5xAmGadZI5WHPK+HF3sTjni4dgDb10AbyctV1B/3I+yoxdY5Jt7eHD1Qu3zu6UnxsW+oLSlyQH3YgbBWGcwAa401bvvE92d4oRvYq0maV5oLk+QwPk8JyAX2ejrslx1o83Xs38qt4wPXTm+Ky4peHV3HbbFYQa1+lrVBHAew8ahUF+1P7oSudoZZkFuks3kouFUp/ENguFLTQNT/sq1SEhMmv5AZ4rcUatY0FiBL1Q3a9DMdqh2T/r2vow1UDPKcUWE8pqtHltMuzaJ82LaZhIdCsD7Ik=
matrix:
include:
# This environment tests the oldest supported anaconda env. Except some of these (i.e., statsmodels
# and sklearn) require higher versions of numpy, so cannot really test *actual* oldest... this also
# tests against linux.
- os: linux
dist: trusty
services:
- docker
env: DISTRIB="conda" PYTHON_VERSION="2.7" CYTHON_VERSION="0.23.5"
COVERAGE=true SCIKIT_LEARN_VERSION="0.17.1" DEPLOY=true CACHEC=true
DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" DOCKER_CONTAINER_NAME="pyramidcontainer"
# This environment tests the same conditions as above, but tests against MAC OS X,
# using virtualenv instead of the conda python distribution
- os: osx
language: generic
env: DISTRIB="conda" PYTHON_VERSION="2.7" CYTHON_VERSION="0.23.5"
COVERAGE=true SCIKIT_LEARN_VERSION="0.17.1" DEPLOY=true CACHEC=false
# 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" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.25.2"
COVERAGE=true SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.8"
DEPLOY=true CACHEC=true DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
DOCKER_CONTAINER_NAME="pyramidcontainer"
# This environment tests Python 3.5 support on MAC OS X, using virtualenv
# instead of the conda python distribution
- os: osx
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.5"
NUMPY_VERSION="1.12.1" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.25.2"
COVERAGE=true SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.8"
DEPLOY=true CACHEC=false
# This environment tests the newest supported Anaconda release (4.4.0) and
# runs on linux
- os: linux
dist: trusty
env: DISTRIB="conda" PYTHON_VERSION="3.6.1" INSTALL_MKL="true"
NUMPY_VERSION="1.12.1" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.25.2"
COVERAGE=true SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.8"
DEPLOY=false CACHEC=true
# This environment use pytest to run the tests. It uses the newest
# supported Anaconda release (4.4.0) and tests with pytests instead of nosetests.
# This test runs on linux.
- os: linux
dist: trusty
env: USE_PYTEST="true" DISTRIB="conda" PYTHON_VERSION="3.6.1" INSTALL_MKL="true"
NUMPY_VERSION="1.12.1" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.25.2"
COVERAGE=false SCIKIT_LEARN_VERSION="0.18" STATSMODELS_VERSION="0.8"
DEPLOY=false CACHEC=true
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.
after_success:
- set +e
- 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
- ls dist/
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/*.whl
on:
tags: true # Upload on tagged releases
condition: "$DEPLOY = true"