forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (80 loc) · 2.41 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
# Make it explicit that we favor the
# new container-based Travis workers
language: python
dist: xenial
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
env:
global:
- CPU_COUNT=3
- TEST_DIR=/tmp/sklearn # Test directory for continuous integration jobs
- PYTEST_VERSION=latest
- OMP_NUM_THREADS=2
- OPENBLAS_NUM_THREADS=2
- SKLEARN_BUILD_PARALLEL=3
- SKLEARN_SKIP_NETWORK_TESTS=1
# Custom environment variables for the ARM wheel builder
- CIBW_BUILD_VERBOSITY=1
- CIBW_TEST_REQUIRES="pytest pytest-xdist threadpoolctl"
- CIBW_TEST_COMMAND="bash {project}/build_tools/travis/test_wheels.sh"
- CIBW_ENVIRONMENT="CPU_COUNT=8
OMP_NUM_THREADS=2
OPENBLAS_NUM_THREADS=2
SKLEARN_BUILD_PARALLEL=8
SKLEARN_SKIP_NETWORK_TESTS=1"
jobs:
include:
- python: 3.7
env:
- CHECK_WARNING=true
- BUILD_WITH_ICC=true
if: type = cron OR commit_message =~ /\[icc-build\]/
- python: 3.7
os: linux
arch: arm64
if: type = cron OR commit_message =~ /\[arm64\]/
env:
- CPU_COUNT=8
# Linux environments to build the scikit-learn wheels
# for the ARM64 arquitecture and Python 3.6 and newer
- python: 3.6
os: linux
arch: arm64
if: type = cron or commit_message =~ /\[cd build\]/
env:
- BUILD_WHEEL=true
- CIBW_BUILD=cp36-manylinux_aarch64
- python: 3.7
os: linux
arch: arm64
if: type = cron or commit_message =~ /\[cd build\]/
env:
- BUILD_WHEEL=true
- CIBW_BUILD=cp37-manylinux_aarch64
- python: 3.8
os: linux
arch: arm64
if: type = cron or commit_message =~ /\[cd build\]/
env:
- BUILD_WHEEL=true
- CIBW_BUILD=cp38-manylinux_aarch64
- python: 3.9
os: linux
arch: arm64
if: type = cron or commit_message =~ /\[cd build\]/
env:
- BUILD_WHEEL=true
- CIBW_BUILD=cp39-manylinux_aarch64
install: source build_tools/travis/install.sh || travis_terminate 1
script: source build_tools/travis/script.sh || travis_terminate 1
after_success: source build_tools/travis/after_success.sh || travis_terminate 1
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/4ffabb4df010b70cd624
on_success: change
on_failure: always
on_start: never