summaryrefslogtreecommitdiff
path: root/shippable.yml
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2019-12-20 16:18:03 -0700
committerTyler Reddy <tyler.je.reddy@gmail.com>2019-12-20 16:18:03 -0700
commit7beb24e8ab3a53f9af0ab049e31ec30deecfcf25 (patch)
treed2b4344ce0d8b8da2a6518fc4b0c5d23d28f21c6 /shippable.yml
parent190ac3e99015ddded029d8811829da1b48b69b97 (diff)
downloadnumpy-7beb24e8ab3a53f9af0ab049e31ec30deecfcf25.tar.gz
TST: shippable build efficiency
* try to avoid a redundant build of NumPy by Shippable CI; use "-n" flag to runtests.py to encourage use of installed NumPy instead of trying to rebuild * prefix pip installs with "python" to avoid common issues using pip installs
Diffstat (limited to 'shippable.yml')
-rw-r--r--shippable.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/shippable.yml b/shippable.yml
index b5ce17751..f64cb9937 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -27,29 +27,29 @@ build:
- target=$(python tools/openblas_support.py)
- sudo cp -r "${target}"/64/lib/* /usr/lib
- sudo cp "${target}"/64/include/* /usr/include
- - pip install --upgrade pip
+ - python -m pip install --upgrade pip
# we will pay the ~13 minute cost of compiling Cython only when a new
# version is scraped in by pip; otherwise, use the cached
# wheel shippable places on Amazon S3 after we build it once
- - pip install -r test_requirements.txt --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
+ - python -m pip install -r test_requirements.txt --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
# install pytest-xdist to leverage a second core
# for unit tests
- - pip install pytest-xdist
+ - python -m pip install pytest-xdist
# build and test numpy
- export PATH=$PATH:$SHIPPABLE_REPO_DIR
# build first and adjust PATH so f2py is found in scripts dir
# use > 1 core for build sometimes slows down a fair bit,
# other times modestly speeds up, so avoid for now
- - pip install .
+ - python -m pip install .
- extra_directories=($SHIPPABLE_REPO_DIR/build/*scripts*)
- extra_path=$(printf "%s:" "${extra_directories[@]}")
- export PATH="${extra_path}${PATH}"
# check OpenBLAS version
- python tools/openblas_support.py --check_version 0.3.7
# run the test suite
- - python runtests.py --debug-info --show-build-log -- -rsx --junit-xml=$SHIPPABLE_REPO_DIR/shippable/testresults/tests.xml -n 2 --durations=10
+ - python runtests.py -n --debug-info --show-build-log -- -rsx --junit-xml=$SHIPPABLE_REPO_DIR/shippable/testresults/tests.xml -n 2 --durations=10
cache: true
cache_dir_list: