File tree 5 files changed +13
-18
lines changed
5 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 18
18
- OPENBLAS_NUM_THREADS=2
19
19
- SKLEARN_BUILD_PARALLEL=3
20
20
- SKLEARN_SKIP_NETWORK_TESTS=1
21
+ - PYTHONUNBUFFERED=1
21
22
# Custom environment variables for the ARM wheel builder
22
23
- CIBW_BUILD_VERBOSITY=1
23
- - CIBW_TEST_REQUIRES="pytest pytest-xdist threadpoolctl"
24
24
- CIBW_TEST_COMMAND="bash {project}/build_tools/travis/test_wheels.sh"
25
- - CIBW_ENVIRONMENT="CPU_COUNT=2
25
+ - CIBW_ENVIRONMENT="CPU_COUNT=6
26
26
OMP_NUM_THREADS=2
27
27
OPENBLAS_NUM_THREADS=2
28
- SKLEARN_BUILD_PARALLEL=3
29
- SKLEARN_SKIP_NETWORK_TESTS=1"
28
+ SKLEARN_BUILD_PARALLEL=10
29
+ SKLEARN_SKIP_NETWORK_TESTS=1
30
+ PYTHONUNBUFFERED=1"
30
31
31
32
jobs :
32
33
include :
Original file line number Diff line number
10000
Diff line change 4
4
# defined in the ".travis.yml" file. In particular, it is
5
5
# important that we call to the right installation script.
6
6
7
- set -e
8
-
9
7
if [[ $BUILD_WHEEL == true ]]; then
10
- source build_tools/travis/install_wheels.sh
8
+ source build_tools/travis/install_wheels.sh || travis_terminate 1
11
9
else
12
- source build_tools/travis/install_main.sh
10
+ source build_tools/travis/install_main.sh || travis_terminate 1
13
11
fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -e
4
-
5
- python -m pip install cibuildwheel
6
- python -m cibuildwheel --output-dir wheelhouse
3
+ python -m pip install cibuildwheel || travis_terminate $?
4
+ python -m cibuildwheel --output-dir wheelhouse || travis_terminate $?
Original file line number Diff line number Diff line change 5
5
# continuous deployment jobs, we have to execute the scripts for
6
6
# testing the continuous integration jobs.
7
7
8
- set -e
9
-
10
8
if [[ $BUILD_WHEEL != true ]]; then
11
9
# This trick will make Travis terminate the continuation of the pipeline
12
10
bash build_tools/travis/test_script.sh || travis_terminate 1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -e
3
+ pip install --upgrade pip || travis_terminate $?
4
+ pip install pytest pytest-xdist || travis_terminate $?
4
5
5
- # Faster run of the source code tests
6
- pytest -n $CPU_COUNT --pyargs sklearn
6
+ python -m pytest -n $CPU_COUNT --pyargs sklearn || travis_terminate $?
7
7
8
8
# Test that there are no links to system libraries
9
- python -m threadpoolctl -i sklearn
9
+ python -m threadpoolctl -i sklearn || travis_terminate $?
You can’t perform that action at this time.
0 commit comments