travis.yml: Update Travis to use Bionic and Focal instead of Xenial

According to our support policy, we do not support Xenial anymore.
Time to switch the bigger parts of the builds to Focal instead.
Some few jobs have to be updated to Bionic instead, since they are
currently still failing on Focal otherwise. Also "--disable-pie" is
causing linker problems with newer versions of Ubuntu ... so remove
that switch from the jobs now (we still test it in a gitlab CI job,
so we don't lose much test coverage here).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20200918103430.297167-6-thuth@redhat.com>
Message-Id: <20200925154027.12672-7-alex.bennee@linaro.org>
This commit is contained in:
Thomas Huth 2020-09-25 16:40:18 +01:00 committed by Alex Bennée
parent 51f9206d07
commit e769905e4c

View file

@ -2,7 +2,7 @@
# Additional builds with specific requirements for a full VM need to # Additional builds with specific requirements for a full VM need to
# be added as additional matrix: entries later on # be added as additional matrix: entries later on
os: linux os: linux
dist: xenial dist: focal
language: c language: c
compiler: compiler:
- gcc - gcc
@ -10,7 +10,7 @@ cache:
# There is one cache per branch and compiler version. # There is one cache per branch and compiler version.
# characteristics of each job are used to identify the cache: # characteristics of each job are used to identify the cache:
# - OS name (currently only linux) # - OS name (currently only linux)
# - OS distribution (for Linux, xenial, trusty, or precise) # - OS distribution (for Linux, bionic or focal)
# - Names and values of visible environment variables set in .travis.yml or Settings panel # - Names and values of visible environment variables set in .travis.yml or Settings panel
timeout: 1200 timeout: 1200
ccache: true ccache: true
@ -27,7 +27,7 @@ addons:
- libattr1-dev - libattr1-dev
- libbrlapi-dev - libbrlapi-dev
- libcap-ng-dev - libcap-ng-dev
- libgcc-4.8-dev - libgcc-7-dev
- libgnutls28-dev - libgnutls28-dev
- libgtk-3-dev - libgtk-3-dev
- libiscsi-dev - libiscsi-dev
@ -210,8 +210,10 @@ jobs:
# gprof/gcov are GCC features # gprof/gcov are GCC features
- name: "GCC gprof/gcov" - name: "GCC gprof/gcov"
dist: bionic
env: env:
- CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=${MAIN_SOFTMMU_TARGETS}" - CONFIG="--enable-gprof --enable-gcov --disable-libssh
--target-list=${MAIN_SOFTMMU_TARGETS}"
after_success: after_success:
- ${SRC_DIR}/scripts/travis/coverage-summary.sh - ${SRC_DIR}/scripts/travis/coverage-summary.sh
@ -270,6 +272,7 @@ jobs:
# Using newer GCC with sanitizers # Using newer GCC with sanitizers
- name: "GCC9 with sanitizers (softmmu)" - name: "GCC9 with sanitizers (softmmu)"
dist: bionic
addons: addons:
apt: apt:
update: true update: true
@ -285,7 +288,7 @@ jobs:
- libattr1-dev - libattr1-dev
- libbrlapi-dev - libbrlapi-dev
- libcap-ng-dev - libcap-ng-dev
- libgnutls-dev - libgnutls28-dev
- libgtk-3-dev - libgtk-3-dev
- libiscsi-dev - libiscsi-dev
- liblttng-ust-dev - liblttng-ust-dev
@ -293,14 +296,13 @@ jobs:
- libncurses5-dev - libncurses5-dev
- libnss3-dev - libnss3-dev
- libpixman-1-dev - libpixman-1-dev
- libpng12-dev - libpng-dev
- librados-dev - librados-dev
- libsdl2-dev - libsdl2-dev
- libsdl2-image-dev - libsdl2-image-dev
- libseccomp-dev - libseccomp-dev
- libspice-protocol-dev - libspice-protocol-dev
- libspice-server-dev - libspice-server-dev
- libssh-dev
- liburcu-dev - liburcu-dev
- libusb-1.0-0-dev - libusb-1.0-0-dev
- libvte-2.91-dev - libvte-2.91-dev
@ -310,11 +312,11 @@ jobs:
compiler: none compiler: none
env: env:
- COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9 - COMPILER_NAME=gcc CXX=g++-9 CC=gcc-9
- CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-pie --disable-linux-user" - CONFIG="--cc=gcc-9 --cxx=g++-9 --disable-linux-user"
- TEST_CMD="" - TEST_CMD=""
before_script: before_script:
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -Wno-error=stringop-truncation -fsanitize=thread" --extra-ldflags="-fuse-ld=gold" || { cat config.log && exit 1; } - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread" || { cat config.log && exit 1; }
# Run check-tcg against linux-user # Run check-tcg against linux-user
@ -356,7 +358,7 @@ jobs:
- name: "[aarch64] GCC check-tcg" - name: "[aarch64] GCC check-tcg"
arch: arm64 arch: arm64
dist: xenial dist: focal
addons: addons:
apt_packages: apt_packages:
- libaio-dev - libaio-dev
@ -389,7 +391,7 @@ jobs:
- name: "[ppc64] GCC check-tcg" - name: "[ppc64] GCC check-tcg"
arch: ppc64le arch: ppc64le
dist: xenial dist: focal
addons: addons:
apt_packages: apt_packages:
- libaio-dev - libaio-dev