Skip to content

Commit

Permalink
CI: split travis arm64 run into two
Browse files Browse the repository at this point in the history
The run is too slow for the test suite to complete, so split it into two
batches.
  • Loading branch information
pv authored and tylerjereddy committed Jun 12, 2020
1 parent a3795e9 commit 3d96899
Showing 1 changed file with 32 additions and 13 deletions.
45 changes: 32 additions & 13 deletions .travis.yml
Expand Up @@ -51,6 +51,20 @@ matrix:
- USE_WHEEL=1
- PIP_NO_CACHE_DIR=off
- NUMPYSPEC="numpy"
- TEST_GROUP_COUNT=2
- TEST_GROUP=1
- python: 3.7
if: type = pull_request
arch: arm64
dist: bionic
env:
- TESTMODE=fast
- COVERAGE=
- USE_WHEEL=1
- PIP_NO_CACHE_DIR=off
- NUMPYSPEC="numpy"
- TEST_GROUP_COUNT=2
- TEST_GROUP=2
- python: 3.7
if: type = pull_request
env:
Expand Down Expand Up @@ -155,6 +169,18 @@ before_install:
- uname -a
- df -h
- ulimit -a
- set -o pipefail
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget -q "https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh" -O miniconda.sh;
chmod +x miniconda.sh;
./miniconda.sh -b -p $HOME/miniconda3;
export PATH=$HOME/miniconda3/bin:$PATH;
conda config --set always_yes yes --set auto_update_conda false;
conda install pip conda;
conda update -n base conda;
conda info -a;
conda install pytest pytest-xdist $NUMPYSPEC mpmath gmpy2 Cython pybind11;
fi
- mkdir builds
- cd builds
- |
Expand Down Expand Up @@ -183,6 +209,11 @@ before_install:
travis_retry pip install numba==0.49.1
travis_retry pip install --only-binary=:all: sparse
fi
- |
if [ -n "${TEST_GROUP_COUNT}" ]; then
travis_retry pip install pytest-test-groups
export TEST_GROUP_ARGS="--test-group-count=${TEST_GROUP_COUNT} --test-group=${TEST_GROUP} --test-group-random-seed=1234"
fi
- |
if [ "${TESTMODE}" == "full" ]; then
travis_retry pip install pytest-cov coverage matplotlib scikit-umfpack scikit-sparse
Expand All @@ -201,18 +232,6 @@ before_install:
fi
- ccache -s
- cd ..
- set -o pipefail
- if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
wget -q "https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh" -O miniconda.sh;
chmod +x miniconda.sh;
./miniconda.sh -b -p $HOME/miniconda3;
export PATH=$HOME/miniconda3/bin:$PATH;
conda config --set always_yes yes --set auto_update_conda false;
conda install pip conda;
conda update -n base conda;
conda info -a;
conda install pytest pytest-xdist $NUMPYSPEC mpmath gmpy2 Cython pybind11;
fi


script:
Expand Down Expand Up @@ -246,7 +265,7 @@ script:
USE_WHEEL_BUILD="--no-build"
fi
- export SCIPY_AVAILABLE_MEM=3G
- python -u runtests.py -g -m $TESTMODE $COVERAGE $USE_WHEEL_BUILD -- -rfEX --durations=10 -n 3 2>&1 | tee runtests.log
- python -u runtests.py -g -m $TESTMODE $COVERAGE $USE_WHEEL_BUILD -- -rfEX --durations=10 -n 3 $TEST_GROUP_ARGS 2>&1 | tee runtests.log

- tools/validate_runtests_log.py $TESTMODE < runtests.log
- if [ "${REFGUIDE_CHECK}" == "1" ]; then python runtests.py -g --refguide-check; fi
Expand Down

0 comments on commit 3d96899

Please sign in to comment.