]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
travis: merge RUN_CLANG into RUN
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 24 Dec 2018 03:03:40 +0000 (04:03 +0100)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sat, 29 Dec 2018 18:14:35 +0000 (19:14 +0100)
They are basically the same except that a couple of environment variables
have to be passed for building systemd with clang.

travis-ci/managers/debian.sh

index 976e926c8263be7ff10a28be8482e94bf5a9a9d1..587049bfa7c336609a17b7a7e3123bdc7df6ee23 100755 (executable)
@@ -40,18 +40,15 @@ for phase in "${PHASES[@]}"; do
             $DOCKER_EXEC apt-get -y build-dep systemd
             $DOCKER_EXEC apt-get -y install "${ADDITIONAL_DEPS[@]}"
             ;;
-        RUN)
-            info "Run phase"
-            $DOCKER_EXEC meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true build
+        RUN|RUN_CLANG)
+            if [[ "$phase" = "RUN_CLANG" ]]; then
+                ENV_VARS="-e CC=clang -e CXX=clang++"
+            fi
+            docker exec $ENV_VARS -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true build
             $DOCKER_EXEC ninja -v -C build
             $DOCKER_EXEC ninja -C build test
             $DOCKER_EXEC tools/check-directives.sh
             ;;
-        RUN_CLANG)
-            docker exec -e CC=clang -e CXX=clang++ -it $CONT_NAME meson --werror -Dtests=unsafe -Dslow-tests=true -Dsplit-usr=true build
-            $DOCKER_EXEC ninja -v -C build
-            $DOCKER_EXEC ninja -C build test
-            ;;
         RUN_ASAN|RUN_CLANG_ASAN)
             if [[ "$phase" = "RUN_CLANG_ASAN" ]]; then
                 ENV_VARS="-e CC=clang -e CXX=clang++"