diff options
-rw-r--r-- | .travis.yml | 18 | ||||
-rwxr-xr-x | travis-ci/managers/fedora.sh | 7 |
2 files changed, 24 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 8f092e9a5..0bb280897 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,6 +54,24 @@ jobs: after_script: - $CI_MANAGERS/fedora.sh CLEANUP + - name: Fedora Latest (clang) + language: bash + env: + - FEDORA_RELEASE="latest" + - CONT_NAME="systemd-fedora-$FEDORA_RELEASE" + - DOCKER_EXEC="docker exec -ti $CONT_NAME" + before_install: + - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce + - docker --version + install: + - $CI_MANAGERS/fedora.sh SETUP + script: + - set -e + - $CI_MANAGERS/fedora.sh RUN_CLANG + - set +e + after_script: + - $CI_MANAGERS/fedora.sh CLEANUP + - stage: Coverity language: bash env: diff --git a/travis-ci/managers/fedora.sh b/travis-ci/managers/fedora.sh index b3ee0281a..1faf5b922 100755 --- a/travis-ci/managers/fedora.sh +++ b/travis-ci/managers/fedora.sh @@ -15,7 +15,7 @@ CONT_NAME="${CONT_NAME:-fedora-$FEDORA_RELEASE-$RANDOM}" DOCKER_EXEC="${DOCKER_EXEC:-docker exec -it $CONT_NAME}" DOCKER_RUN="${DOCKER_RUN:-docker run}" REPO_ROOT="${REPO_ROOT:-$PWD}" -ADDITIONAL_DEPS=(dnf-plugins-core python2 iputils hostname libasan python3-pyparsing python3-evdev libubsan) +ADDITIONAL_DEPS=(dnf-plugins-core python2 iputils hostname libasan python3-pyparsing python3-evdev libubsan clang) function info() { echo -e "\033[33;1m$1\033[0m" @@ -52,6 +52,11 @@ for phase in "${PHASES[@]}"; do $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 build + $DOCKER_EXEC ninja -v -C build + $DOCKER_EXEC ninja -C build test + ;; RUN_ASAN) $DOCKER_EXEC git clean -dxff $DOCKER_EXEC meson --werror -Dtests=unsafe -Db_sanitize=address,undefined build |