Skip to content

Commit 55f7a49

Browse files
committed
TST: use multilinux2010 docker instead of ubuntu
1 parent 760800d commit 55f7a49

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,32 @@ stages:
2828

2929
- stage: ComprehensiveTests
3030
jobs:
31-
- job: Linux_Python_36_32bit_full_with_asserts
31+
- job: Linux_Python_38_32bit_full_with_asserts
3232
pool:
33-
vmImage: 'ubuntu-16.04'
33+
vmImage: 'ubuntu-18.04'
3434
steps:
3535
- script: |
36-
docker pull i386/ubuntu:bionic
37-
docker run -v $(pwd):/numpy i386/ubuntu:bionic /bin/bash -c "cd numpy && \
38-
apt-get -y update && \
39-
apt-get -y install python3.6-dev python3-pip locales python3-certifi && \
40-
locale-gen fr_FR && update-locale && \
41-
apt-get -y install gfortran-5 wget && \
36+
docker pull quay.io/pypa/manylinux2010_i686
37+
docker run -v $(pwd):/numpy -e CFLAGS="-msse2 -std=c99 -UNDEBUG" \
38+
-e F77=gfortran-5 -e F90=gfortran-5 quay.io/pypa/manylinux2010_i686 \
39+
/bin/bash -xc "cd numpy && \
40+
/opt/python/cp38-cp38/bin/python -mvenv venv &&\
41+
source venv/bin/activate && \
4242
target=\$(python3 tools/openblas_support.py) && \
43-
ls -lR \$target && \
4443
cp -r \$target/lib/* /usr/lib && \
4544
cp \$target/include/* /usr/include && \
46-
python3 -m pip install --user --upgrade pip setuptools && \
47-
python3 -m pip install --user -r test_requirements.txt && \
48-
python3 -m pip install . && \
49-
F77=gfortran-5 F90=gfortran-5 \
50-
CFLAGS=-UNDEBUG python3 runtests.py -n --debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml && \
45+
python3 -m pip install -r test_requirements.txt && \
46+
echo CFLAGS \$CFLAGS && \
47+
python3 -m pip install -v . && \
48+
python3 runtests.py -n --debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml && \
5149
python3 tools/openblas_support.py --check_version $(OpenBLAS_version)"
52-
displayName: 'Run 32-bit Ubuntu Docker Build / Tests'
50+
displayName: 'Run 32-bit multilinux2010 Docker Build / Tests'
5351
- task: PublishTestResults@2
5452
condition: succeededOrFailed()
5553
inputs:
5654
testResultsFiles: '**/test-*.xml'
5755
failTaskOnFailedTests: true
58-
testRunTitle: 'Publish test results for Python 3.6-32 bit full Linux'
56+
testRunTitle: 'Publish test results for Python 3.8-32 bit full Linux'
5957
- job: macOS
6058
pool:
6159
# NOTE: at time of writing, there is a danger

0 commit comments

Comments
 (0)