diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-29 19:55:24 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-29 22:24:12 +0200 |
commit | 8370da9ea608b0f59c9da495910bbc3e45236ed6 (patch) | |
tree | f2a6fce8f564926f0446154eeb2c82de979718a8 /.github | |
parent | 5386e247f8159bb8014d3dfb45bd30f3efc9dc6b (diff) | |
download | systemd-8370da9ea608b0f59c9da495910bbc3e45236ed6.tar.gz |
ci: shellcheck-ify CI scripts
Diffstat (limited to '.github')
-rwxr-xr-x | .github/workflows/build_test.sh | 5 | ||||
-rwxr-xr-x | .github/workflows/unit_tests.sh | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh index bdcb71ba9c..57df14e2fc 100755 --- a/.github/workflows/build_test.sh +++ b/.github/workflows/build_test.sh @@ -75,7 +75,7 @@ if [[ "$COMPILER" == clang ]]; then # Following snippet was borrowed from https://apt.llvm.org/llvm.sh wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - add-apt-repository -y "deb http://apt.llvm.org/$RELEASE/ llvm-toolchain-$RELEASE-$COMPILER_VERSION main" - PACKAGES+=(clang-$COMPILER_VERSION lldb-$COMPILER_VERSION lld-$COMPILER_VERSION clangd-$COMPILER_VERSION) + PACKAGES+=("clang-$COMPILER_VERSION" "lldb-$COMPILER_VERSION" "lld-$COMPILER_VERSION" "clangd-$COMPILER_VERSION") elif [[ "$COMPILER" == gcc ]]; then CC="gcc-$COMPILER_VERSION" CXX="g++-$COMPILER_VERSION" @@ -83,7 +83,7 @@ elif [[ "$COMPILER" == gcc ]]; then # Latest gcc stack deb packages provided by # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test add-apt-repository -y ppa:ubuntu-toolchain-r/test - PACKAGES+=(gcc-$COMPILER_VERSION) + PACKAGES+=("gcc-$COMPILER_VERSION") else fatal "Unknown compiler: $COMPILER" fi @@ -108,6 +108,7 @@ for args in "${ARGS[@]}"; do SECONDS=0 info "Checking build with $args" + # shellcheck disable=SC2086 if ! AR="$AR" CC="$CC" CXX="$CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" meson -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror $args build; then fatal "meson failed with $args" fi diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh index 17e73f1856..bc5050fd1c 100755 --- a/.github/workflows/unit_tests.sh +++ b/.github/workflows/unit_tests.sh @@ -1,5 +1,6 @@ #!/bin/bash +# shellcheck disable=SC2206 PHASES=(${@:-SETUP RUN RUN_ASAN_UBSAN CLEANUP}) RELEASE="$(lsb_release -cs)" ADDITIONAL_DEPS=( |