diff options
author | Cam Cope <github@camcope.me> | 2021-08-30 07:35:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 15:35:33 +0100 |
commit | d54c7ecbd618afb4df524e0d96dec7fe7cc2935d (patch) | |
tree | 4ffa94f7ab1e76c2657540bab4a0e358d857bfb3 /test/travis-build.sh | |
parent | 803e0e65cf63fdc95c7ad4a519a5db31d27f94d4 (diff) | |
download | sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.gz sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.tar.bz2 sshfs-d54c7ecbd618afb4df524e0d96dec7fe7cc2935d.zip |
Fixup whitespace and configure CI to keep it that way
Diffstat (limited to 'test/travis-build.sh')
-rwxr-xr-x | test/travis-build.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/travis-build.sh b/test/travis-build.sh index c33f7dc..aa72cb2 100755 --- a/test/travis-build.sh +++ b/test/travis-build.sh @@ -6,36 +6,40 @@ set -e # that we still need to fix export ASAN_OPTIONS="detect_leaks=0" -export LSAN_OPTIONS="suppressions=$(pwd)/test/lsan_suppress.txt" +export LSAN_OPTIONS="suppressions=${PWD}/test/lsan_suppress.txt" export CC TEST_CMD="python3 -m pytest --maxfail=99 test/" # Standard build with Valgrind for CC in gcc clang; do + ( mkdir "build-${CC}"; cd "build-${CC}" if [ "${CC}" == 'gcc-6' ]; then build_opts='-D b_lundef=false' else build_opts='' fi + # shellcheck disable=SC2086 meson -D werror=true ${build_opts} ../ ninja TEST_WITH_VALGRIND=true ${TEST_CMD} - cd .. + ) done (cd "build-${CC}"; sudo ninja install) # Sanitized build CC=clang for san in undefined address; do - mkdir "build-${san}"; cd "build-${san}" + ( + mkdir "build-${san}" + cd "build-${san}" # b_lundef=false is required to work around clang # bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4 meson -D b_sanitize=${san} -D b_lundef=false -D werror=true .. ninja ${TEST_CMD} sudo ninja install - cd .. + ) done |