2018-01-11 13:41:35 +03:00
sudo : required
2018-12-23 13:10:06 +03:00
dist : xenial
2018-01-11 13:41:35 +03:00
services :
- docker
2018-06-01 10:56:13 +03:00
2018-11-04 20:23:30 +03:00
env :
global :
- AUTHOR_EMAIL="$(git log -1 $TRAVIS_COMMIT --pretty=\"%aE\")"
2018-11-06 11:04:10 +03:00
- CI_MANAGERS="$TRAVIS_BUILD_DIR/travis-ci/managers"
2018-11-04 20:23:30 +03:00
- CI_TOOLS="$TRAVIS_BUILD_DIR/travis-ci/tools"
2018-11-06 11:04:10 +03:00
- REPO_ROOT="$TRAVIS_BUILD_DIR"
2018-11-04 20:23:30 +03:00
stages :
2019-06-14 22:16:41 +03:00
- name : Build & test
if : type != cron
2019-06-14 21:42:19 +03:00
- name : Fuzzit-Fuzzing
2018-11-04 20:23:30 +03:00
if : type = cron
2018-01-11 13:41:35 +03:00
2019-09-07 02:26:44 +03:00
- name : Fuzzit-Regression
2019-06-14 21:56:10 +03:00
if : type != cron
2019-06-14 21:42:19 +03:00
# Run Coverity periodically instead of for each commit/PR
- name : Coverity
2019-06-11 09:25:45 +03:00
if : type = cron
2018-01-11 13:41:35 +03:00
jobs :
include :
2018-11-04 20:23:30 +03:00
- stage : Build & test
2018-12-23 15:01:41 +03:00
name : Debian Testing
2018-11-04 20:23:30 +03:00
language : bash
env :
2018-12-23 15:01:41 +03:00
- DEBIAN_RELEASE="testing"
- CONT_NAME="systemd-debian-$DEBIAN_RELEASE"
2018-11-04 20:23:30 +03:00
- DOCKER_EXEC="docker exec -ti $CONT_NAME"
before_install :
2018-01-11 13:41:35 +03:00
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
2018-11-04 20:23:30 +03:00
install :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh SETUP
2018-11-04 20:23:30 +03:00
script :
- set -e
# Build systemd
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh RUN
2018-11-08 01:01:27 +03:00
- set +e
after_script :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh CLEANUP
2018-11-08 01:01:27 +03:00
2018-12-23 15:01:41 +03:00
- name : Debian Testing (ASan+UBSan)
2018-12-01 02:45:35 +03:00
language : bash
env :
2018-12-23 15:01:41 +03:00
- DEBIAN_RELEASE="testing"
- CONT_NAME="systemd-debian-$DEBIAN_RELEASE"
2018-12-01 02:45:35 +03:00
- DOCKER_EXEC="docker exec -ti $CONT_NAME"
before_install :
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
install :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh SETUP
2018-12-01 02:45:35 +03:00
script :
- set -e
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh RUN_ASAN
2018-12-01 02:45:35 +03:00
- set +e
after_script :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh CLEANUP
2018-12-01 02:45:35 +03:00
2018-12-23 15:01:41 +03:00
- name : Debian Testing (clang)
2018-12-02 09:39:18 +03:00
language : bash
env :
2018-12-23 15:01:41 +03:00
- DEBIAN_RELEASE="testing"
- CONT_NAME="systemd-debian-$DEBIAN_RELEASE"
2018-12-02 09:39:18 +03:00
- DOCKER_EXEC="docker exec -ti $CONT_NAME"
before_install :
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
install :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh SETUP
2018-12-02 09:39:18 +03:00
script :
- set -e
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh RUN_CLANG
2018-12-02 09:39:18 +03:00
- set +e
after_script :
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh CLEANUP
2018-12-02 09:39:18 +03:00
2018-12-23 15:01:41 +03:00
- name : Debian Testing (clang ASan+UBSan)
2018-12-07 11:49:51 +03:00
language : bash
env :
- DEBIAN_RELEASE="testing"
- CONT_NAME="systemd-debian-$DEBIAN_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/debian.sh SETUP
script :
- set -e
2018-12-23 15:01:41 +03:00
- $CI_MANAGERS/debian.sh RUN_CLANG_ASAN
2018-12-07 11:49:51 +03:00
- set +e
after_script :
- $CI_MANAGERS/debian.sh CLEANUP
2019-09-06 20:29:10 +03:00
- stage : Fuzzit-Regression
name : Continuous Fuzzing via Fuzzit (regression)
2019-06-11 09:25:45 +03:00
language : bash
script :
- set -e
2019-09-06 20:29:10 +03:00
- $CI_MANAGERS/fuzzit.sh regression
2019-06-11 09:25:45 +03:00
- set +e
- stage : Fuzzit-Fuzzing
2019-09-06 20:29:10 +03:00
name : Continuous Fuzzing via Fuzzit (fuzzing daily)
2019-06-11 09:25:45 +03:00
language : bash
script :
- set -e
- $CI_MANAGERS/fuzzit.sh fuzzing
- set +e
2018-11-04 20:23:30 +03:00
- stage : Coverity
language : bash
2018-01-11 13:41:35 +03:00
env :
2018-11-06 17:59:34 +03:00
- FEDORA_RELEASE="latest"
2018-11-04 20:23:30 +03:00
- CONT_NAME="coverity-fedora-$FEDORA_RELEASE"
- DOCKER_EXEC="docker exec -ti $CONT_NAME"
2018-11-07 06:36:57 +03:00
- TOOL_BASE="/var/tmp/coverity-scan-analysis"
- DOCKER_RUN="docker run -v $TOOL_BASE:$TOOL_BASE:rw --env-file .cov-env"
2018-11-04 20:23:30 +03:00
# Coverity env variables
- PLATFORM="$(uname)"
2019-11-24 12:29:57 +03:00
- TOOL_ARCHIVE="/var/tmp/cov-analysis-$PLATFORM.tgz"
2018-11-04 20:23:30 +03:00
- SCAN_URL="https://scan.coverity.com"
- UPLOAD_URL="https://scan.coverity.com/builds"
2018-01-11 13:41:35 +03:00
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
- COVERITY_SCAN_NOTIFICATION_EMAIL="${AUTHOR_EMAIL}"
- COVERITY_SCAN_BRANCH_PATTERN="$TRAVIS_BRANCH"
2018-11-06 11:04:10 +03:00
# Encrypted COVERITY_SCAN_TOKEN env variable
# Generated using `travis encrypt -r systemd/systemd COVERITY_SCAN_TOKEN=xxxx`
- secure : "jKSz+Y1Mv8xMpQHh7g5lzW7E6HQGndFz/vKDJQ1CVShwFoyjV3Zu+MFS3UYKlh1236zL0Z4dvsYFx/b3Hq8nxZWCrWeZs2NdXgy/wh8LZhxwzcGYigp3sIA/cYdP5rDjFJO0MasNkl25/rml8+eZWz+8/xQic98UQHjSco/EOWtssoRcg0J0c4eDM7bGLfIQWE73NNY1Q1UtWjKmx1kekVrM8dPmHXJ9aERka7bmcbJAcKd6vabs6DQ5AfWccUPIn/EsRYqIJTRxJrFYU6XizANZ1a7Vwk/DWHZUEn2msxcZw5BbAMDTMx0TbfrNkKSHMHuvQUCu6KCBAq414i+LgkMfmQ2SWwKiIUsud1kxXX3ZPl9bxDv1HkvVdcniC/EM7lNEEVwm4meOnjuhI2lhOyOjmP3FTSlMHGP7xlK8DS2k9fqL58vn0BaSjwWgd+2+HuL2+nJmxcK1eLGzKqaostFxrk2Xs2vPZkUdV2nWY/asUrcWHml6YlWDn2eP83pfwxHYsMiEHY/rTKvxeVY+iirO/AphoO+eaYu7LvjKZU1Yx5Z4u/SnGWAiCH0yhMis0bWmgi7SCbw+sDd2uya+aoiLIGiB2ChW7hXHXCue/dif6/gLU7b+L8R00pQwnWdvKUPoIJCmZJYCluTeib4jpW+EmARB2+nR8wms2K9FGKM="
2018-11-04 20:23:30 +03:00
before_install :
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker --version
install :
# Install Coverity on the host
- $CI_TOOLS/get-coverity.sh
# Export necessary env variables for Coverity
2018-01-11 13:41:35 +03:00
- env | grep -E "TRAVIS|COV|TOOL|URL" > .cov-env
2018-11-04 20:23:30 +03:00
# Pull a Docker image and start a new container
2018-11-06 11:04:10 +03:00
- $CI_MANAGERS/fedora.sh SETUP
2018-11-04 20:23:30 +03:00
script :
- set -e
# Preconfigure with meson to prevent Coverity from capturing meson metadata
2019-06-21 03:21:09 +03:00
- $DOCKER_EXEC meson cov-build -Dman=false
2018-11-04 20:23:30 +03:00
# Run Coverity
- $DOCKER_EXEC tools/coverity.sh build
- $DOCKER_EXEC tools/coverity.sh upload
2018-01-11 13:41:35 +03:00
2018-11-04 20:23:30 +03:00
- set +e
2018-11-06 11:04:10 +03:00
after_script :
- $CI_MANAGERS/fedora.sh CLEANUP