diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-06-07 14:05:20 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-06-09 21:27:07 +0200 |
commit | b36746c90e8fade41d323ebdd89d9e41546e099b (patch) | |
tree | 6ad3d4fab5560527765ee665897afed635a383f5 /.travis.yml | |
parent | 8b8ae7959d212c51ada4c1f13df5fb573461d024 (diff) | |
download | systemd-b36746c90e8fade41d323ebdd89d9e41546e099b.tar.gz |
travis: check build with various compiler options
In the past we occasionally stumbled upon a build issue which could be
reproduced only with specific optimization level or other compilation
option. Let's try to build the current revision with several most common
compiler options causing such issues to catch them early.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 78cf5bc6f2..e57c199077 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ env: - REPO_ROOT="$TRAVIS_BUILD_DIR" stages: + - name: Build check + if: type != cron + - name: Build & test if: type != cron @@ -20,6 +23,45 @@ stages: jobs: include: + - stage: Build check + name: Fedora Rawhide (gcc) + language: bash + env: + - FEDORA_RELEASE="rawhide" + - 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 + # Build systemd + - $CI_MANAGERS/fedora.sh RUN_BUILD_CHECK_GCC + - set +e + after_script: + - $CI_MANAGERS/fedora.sh CLEANUP + + - name: Fedora Rawhide (clang) + language: bash + env: + - FEDORA_RELEASE="rawhide" + - 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 + # Build systemd + - $CI_MANAGERS/fedora.sh RUN_BUILD_CHECK_CLANG + - set +e + after_script: + - $CI_MANAGERS/fedora.sh CLEANUP + - stage: Build & test name: Debian Testing language: bash |