travis: also build systemd with clang

This commit is contained in:
Evgeny Vereshchagin 2018-12-01 00:45:35 +01:00
parent f5e75e08b0
commit 37cbcd4642
2 changed files with 24 additions and 1 deletions

View File

@ -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:

View File

@ -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