summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2019-07-14 10:52:04 -0600
committerTyler Reddy <tyler.je.reddy@gmail.com>2019-07-14 16:25:45 -0600
commit2b504ea85c485f340bed0808793db1c45c89640a (patch)
treed634127b9db413ef154ab0dedeb4a0e4f8a4bffe /azure-pipelines.yml
parent3d4986fe7adb7c16f3c5c903d83a1480803c250e (diff)
downloadnumpy-2b504ea85c485f340bed0808793db1c45c89640a.tar.gz
TST, MAINT: expand OpenBLAS version checking
* add a function to tools/openblas_support.py that may be used to test OpenBLAS version available through NumPy in a manner agnostic to any specific CI service * expand OpenBLAS version checking to include ppc64le and POWER8 CI runs; a separate PR will be provided to bump these versions to 0.3.7.dev * OpenBLAS install was broken on ppc64le Travis CI after migration to tools/openblas_support.py; fixed that * Azure CI config no longer uses a single-line 280-character Python "program" assigned to an environment variable to check OpenBLAS version; instead, it now leverages tools/openblas_support.py to perform the same operation using a conventional Python function
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 86aed8dab..edb577cdb 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -9,7 +9,6 @@ variables:
# OpenBLAS_version should be updated
# to match numpy-wheels repo
OpenBLAS_version: 0.3.7.dev
- TEST_GET_CONFIG: import numpy, ctypes; dll = ctypes.CDLL(numpy.core._multiarray_umath.__file__); get_config = dll.openblas_get_config; get_config.restype=ctypes.c_char_p; res = get_config(); print('OpenBLAS get_config returned', str(res)); assert b'OpenBLAS $(OpenBLAS_version)' in res
jobs:
- job: Linux_Python_36_32bit_full_with_asserts
@@ -30,7 +29,7 @@ jobs:
python3 -m pip install . && \
F77=gfortran-5 F90=gfortran-5 \
CFLAGS='-UNDEBUG -std=c99' python3 runtests.py -n --mode=full -- -rsx --junitxml=junit/test-results.xml && \
- cd .. && python3 -c \"$(TEST_GET_CONFIG)\""
+ python3 tools/openblas_support.py --check_version $(OpenBLAS_version)"
displayName: 'Run 32-bit Ubuntu Docker Build / Tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
@@ -108,7 +107,7 @@ jobs:
displayName: 'Run Refuide Check'
- script: python runtests.py -n --mode=full -- -rsx --junitxml=junit/test-results.xml
displayName: 'Run Full NumPy Test Suite'
- - bash: pushd . && cd .. && python -c "$(TEST_GET_CONFIG)" && popd
+ - bash: python tools/openblas_support.py --check_version $(OpenBLAS_version)
displayName: 'Verify OpenBLAS version'
- task: PublishTestResults@2
condition: succeededOrFailed()