|
|
ddca0b |
From 5b14988845b591f6fa2fc1e032618fe882827f4a Mon Sep 17 00:00:00 2001
|
|
|
ddca0b |
From: Frantisek Sumsal <fsumsal@redhat.com>
|
|
|
ddca0b |
Date: Mon, 14 Oct 2019 16:22:51 +0200
|
|
|
ddca0b |
Subject: [PATCH] travis: drop SCL remains
|
|
|
ddca0b |
|
|
|
ddca0b |
The `bash -ic` wrapper existed solely to make SCL work as expected
|
|
|
ddca0b |
|
|
|
ddca0b |
Resolves: #1761519
|
|
|
ddca0b |
---
|
|
|
ddca0b |
ci/travis-centos-rhel8.sh | 16 +++-------------
|
|
|
ddca0b |
1 file changed, 3 insertions(+), 13 deletions(-)
|
|
|
ddca0b |
|
|
|
ddca0b |
diff --git a/ci/travis-centos-rhel8.sh b/ci/travis-centos-rhel8.sh
|
|
|
ddca0b |
index ade44a0413..da131c726b 100755
|
|
|
ddca0b |
--- a/ci/travis-centos-rhel8.sh
|
|
|
ddca0b |
+++ b/ci/travis-centos-rhel8.sh
|
|
|
ddca0b |
@@ -113,22 +113,12 @@ for phase in "${PHASES[@]}"; do
|
|
|
ddca0b |
$DOCKER_EXEC ninja -C build test
|
|
|
ddca0b |
;;
|
|
|
ddca0b |
RUN_ASAN|RUN_CLANG_ASAN)
|
|
|
ddca0b |
- # Note to my future frustrated self: docker exec runs the given command
|
|
|
ddca0b |
- # as sh -c 'command' - which means both .bash_profile and .bashrc will
|
|
|
ddca0b |
- # be ignored. That's because .bash_profile is sourced for LOGIN shells (i.e.
|
|
|
ddca0b |
- # sh -l), whereas .bashrc is sourced for NON-LOGIN INTERACTIVE shells
|
|
|
ddca0b |
- # (i.e. sh -i).
|
|
|
ddca0b |
- # As the default docker exec command lacks either of those options,
|
|
|
ddca0b |
- # we need to use a wrapper command which runs the wanted command
|
|
|
ddca0b |
- # under an explicit bash -i, so the SCL source above works properly.
|
|
|
ddca0b |
- docker exec -it $CONT_NAME bash -ic 'gcc --version'
|
|
|
ddca0b |
-
|
|
|
ddca0b |
if [[ "$phase" = "RUN_CLANG_ASAN" ]]; then
|
|
|
ddca0b |
ENV_VARS="-e CC=clang -e CXX=clang++"
|
|
|
ddca0b |
MESON_ARGS="-Db_lundef=false" # See https://github.com/mesonbuild/meson/issues/764
|
|
|
ddca0b |
fi
|
|
|
ddca0b |
- docker exec $ENV_VARS -it $CONT_NAME bash -ic "meson build --werror -Dtests=unsafe -Db_sanitize=address,undefined $MESON_ARGS ${CONFIGURE_OPTS[@]}"
|
|
|
ddca0b |
- docker exec -it $CONT_NAME bash -ic 'ninja -v -C build'
|
|
|
ddca0b |
+ docker exec $ENV_VARS -it $CONT_NAME meson build --werror -Dtests=unsafe -Db_sanitize=address,undefined $MESON_ARGS ${CONFIGURE_OPTS[@]}
|
|
|
ddca0b |
+ docker exec -it $CONT_NAME ninja -v -C build
|
|
|
ddca0b |
|
|
|
ddca0b |
# Never remove halt_on_error from UBSAN_OPTIONS. See https://github.com/systemd/systemd/commit/2614d83aa06592aedb.
|
|
|
ddca0b |
travis_wait docker exec --interactive=false \
|
|
|
ddca0b |
@@ -136,7 +126,7 @@ for phase in "${PHASES[@]}"; do
|
|
|
ddca0b |
-e ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 \
|
|
|
ddca0b |
-e "TRAVIS=$TRAVIS" \
|
|
|
ddca0b |
-t $CONT_NAME \
|
|
|
ddca0b |
- bash -ic 'meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs'
|
|
|
ddca0b |
+ meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs
|
|
|
ddca0b |
;;
|
|
|
ddca0b |
CLEANUP)
|
|
|
ddca0b |
info "Cleanup phase"
|