forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
58 lines (51 loc) · 1.68 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
# make it explicit that we favor the new container-based travis workers
language: python
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
dist: xenial
env:
global:
# Directory where tests are run from
- TEST_DIR=/tmp/sklearn
- OMP_NUM_THREADS=2
- OPENBLAS_NUM_THREADS=2
- PYTEST_VERSION=latest
matrix:
include:
# Linux environment to test scikit-learn against numpy and scipy master
# installed from their CI wheels in a virtualenv with the Python
# interpreter provided by travis.
- python: 3.7
env:
- CHECK_WARNINGS="true"
- CI_CPU_COUNT="3"
if: type = cron OR commit_message =~ /\[scipy-dev\]/
# As above but build scikit-learn with Intel C compiler (ICC).
- python: 3.7
env:
- CHECK_WARNING="true"
- BUILD_WITH_ICC="true"
- CI_CPU_COUNT="3"
if: type = cron OR commit_message =~ /\[icc-build\]/
- python: 3.7
env:
- CI_CPU_COUNT="8"
os: linux
arch: arm64
if: type = cron OR commit_message =~ /\[arm64\]/
install: source build_tools/travis/install.sh
script:
- bash build_tools/travis/test_script.sh || travis_terminate 1
- bash build_tools/travis/test_docs.sh || travis_terminate 1
- bash build_tools/travis/test_pytest_soft_dependency.sh || travis_terminate 1
after_success: source build_tools/travis/after_success.sh
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/4ffabb4df010b70cd624
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always