Skip to content

Commit

Permalink
CI: set -x writes to stderr which triggers CI to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbell10 authored and ragibson committed Jul 25, 2021
1 parent a90d8e1 commit a1c5a12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Expand Up @@ -142,7 +142,7 @@ stages:
CXX: g++-4.8
steps:
- script: |
set -euxo pipefail
set -euo pipefail
sudo apt update -y
sudo apt install -y g++-4.8 gcc-4.8
displayName: 'Install GCC 4.8'
Expand Down Expand Up @@ -173,7 +173,7 @@ stages:
displayName: 'Install tools'
failOnStderr: false
- script: |
set -euxo pipefail
set -euo pipefail
PYFLAKES_NODOCTEST=1 pyflakes scipy benchmarks/benchmarks 2>&1 | grep -E -v 'unable to detect undefined names|assigned to but never used|imported but unused|redefinition of unused|may be undefined, or defined from star imports|syntax error in type comment .ignore.import.' > test.out || true
cat test.out
test \! -s test.out
Expand All @@ -196,7 +196,7 @@ stages:
git submodule update --init
displayName: 'Fetch submodules'
- script: |
set -euxo pipefail
set -euo pipefail
docker pull i386/ubuntu:bionic
docker run -v $(pwd):/scipy i386/ubuntu:bionic /usr/bin/linux32 /bin/bash -c "cd scipy && \
apt-get -y update && \
Expand Down
12 changes: 6 additions & 6 deletions ci/azure-travis-template.yaml
Expand Up @@ -96,12 +96,12 @@ steps:

# Build and test SciPy
- script: |
set -euxo pipefail
set -euo pipefail
python -c 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)'
python -c 'import mpmath.libmp; assert mpmath.libmp.BACKEND == "gmpy"'
- ${{ if eq(parameters.use_wheel, true) }}:
- script: |
set -euxo pipefail
set -euo pipefail
# Run setup.py build before pip wheel, to build in current directory
# and make more efficient use of ccache
echo "setup.py build"
Expand All @@ -112,7 +112,7 @@ steps:
displayName: 'Install SciPy from Wheel'
- ${{ if eq(parameters.use_sdist, true) }}:
- script: |
set -euxo pipefail
set -euo pipefail
echo "setup.py sdist"
python tools/suppress_output.py python setup.py sdist
# Move out of source directory to avoid finding local scipy
Expand All @@ -132,7 +132,7 @@ steps:
USE_WHEEL_BUILD: '--no-build'
displayName: 'Build SciPy'
- script: |
set -euxo pipefail
set -euo pipefail
python -u runtests.py -g -j2 -m ${{ parameters.test_mode }} ${COVERAGE:-} ${USE_WHEEL_BUILD:-} -- -rfEX --durations=10 2>&1 | tee runtests.log
tools/validate_runtests_log.py ${{ parameters.test_mode }} < runtests.log
env:
Expand All @@ -149,7 +149,7 @@ steps:
displayName: 'Refguide Check'
- ${{ if and(ne(variables['Build.SourceBranch'], 'refs/heads/master'), eq(parameters.asv_check, true)) }}:
- script: |
set -euxo pipefail
set -euo pipefail
cd benchmarks
python -masv check -E existing
# pyfftw missing should raise an error when running benchmarks with SCIPY_ALLOW_BENCH_IMPORT_ERRORS=0
Expand All @@ -160,7 +160,7 @@ steps:
failOnStderr: true
- ${{ if eq(parameters.coverage, true) }}:
- script: |
set -euxo pipefail
set -euo pipefail
RUN_DIR=`echo build/testenv/lib/python*/site-packages`
# Produce gcov output for codecov to find
find build -name '*.gcno' -type f -exec gcov -pb {} +
Expand Down

0 comments on commit a1c5a12

Please sign in to comment.