@@ -32,42 +32,6 @@ stages:
32
32
- bash : echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET"
33
33
name : result
34
34
35
- - stage : InitialTests
36
- condition : and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
37
- dependsOn : Check
38
- jobs :
39
-
40
- # Native build is based on gcc flag `-march=native`
41
- - job : Linux_baseline_native
42
- pool :
43
- vmImage : ' ubuntu-20.04'
44
- steps :
45
- - script : |
46
- git submodule update --init
47
- displayName: 'Fetch submodules'
48
- - script : |
49
- if ! `gcc 2>/dev/null`; then
50
- sudo apt install gcc
51
- fi
52
- sudo add-apt-repository ppa:deadsnakes/ppa -y
53
- sudo apt install python3.9
54
- sudo apt install python3.9-dev
55
- sudo apt install python3.9-distutils
56
- # python3 has no setuptools, so install one to get us going
57
- python3.9 -m pip install --user --upgrade pip 'setuptools<49.2.0'
58
- python3.9 -m pip install --user -r test_requirements.txt
59
- displayName: 'install python/requirements'
60
- - script : |
61
- python3.9 runtests.py --show-build-log --cpu-baseline=native --cpu-dispatch=none \
62
- --debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml
63
- displayName: 'Run native baseline Build / Tests'
64
- - task : PublishTestResults@2
65
- condition : succeededOrFailed()
66
- inputs :
67
- testResultsFiles : ' **/test-*.xml'
68
- failTaskOnFailedTests : true
69
- testRunTitle : ' Publish test results for baseline/native'
70
-
71
35
- stage : ComprehensiveTests
72
36
condition : and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
73
37
dependsOn : Check
@@ -101,6 +65,7 @@ stages:
101
65
git submodule update --init
102
66
displayName: 'Fetch submodules'
103
67
- script : |
68
+ # yum does not have a ninja package, so use the PyPI one
104
69
docker run -v $(pwd):/numpy -e CFLAGS="-msse2 -std=c99 -UNDEBUG" \
105
70
-e F77=gfortran-5 -e F90=gfortran-5 quay.io/pypa/manylinux2014_i686 \
106
71
/bin/bash -xc " \
@@ -111,6 +76,7 @@ stages:
111
76
target=\$(python3 tools/openblas_support.py) && \
112
77
cp -r \$target/lib/* /usr/lib && \
113
78
cp \$target/include/* /usr/include && \
79
+ python3 -m pip install ninja && \
114
80
python3 -m pip install -r test_requirements.txt && \
115
81
echo CFLAGS \$CFLAGS && \
116
82
python3 -m pip install -v . && \
@@ -175,7 +141,7 @@ stages:
175
141
- script : |
176
142
python -m pip install -r test_requirements.txt
177
143
# Don't use doc_requirements.txt since that messes up tests
178
- python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0
144
+ python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0 ninja
179
145
displayName: 'Install dependencies; some are optional to avoid test skips'
180
146
- script : /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'"
181
147
displayName : ' Check for unreachable code paths in Python modules'
0 commit comments