travis : Upgrade to bionic (#5432)

Use Ubuntu 18.04 (bionic)
Use https://github.com/benlau/qtci to install Qt
This commit is contained in:
Magne Sjaastad 2020-01-31 10:25:47 +01:00 committed by GitHub
parent d3f026b84c
commit 4b2f740a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,37 +1,27 @@
dist: xenial # For 18.04, use bionic
language: cpp
compiler:
- gcc
dist: bionic
addons:
apt:
sources:
packages:
- cmake
- cmake-data
- libqt5opengl5
- qt5-qmake
- qt5-default
- libqt5opengl5-dev
- qtbase5-dev
- qtscript5-dev
before_script:
- git clone https://github.com/OPM/ResInsight.git
apt:
packages:
- libxkbcommon-x11-0
- libgl1-mesa-dev
- mesa-common-dev
- libglfw3-dev
- libglu1-mesa-dev
services:
env:
- QT_CI_PACKAGES=qt.qt5.5132.gcc_64,qt.qt5.5132.qtscript PATH="$TRAVIS_BUILD_DIR/Qt/5.13.2/gcc_64/bin:${PATH}"
script:
############################################################################
# Build main and tests
############################################################################
- mkdir -p build
- cd build
- cmake -DRESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS=true -DRESINSIGHT_ENABLE_COTIRE=true ..
# Build the default target
#- make -j8
# Build the target produced by Cotire
- make -j8 ResInsight_unity
- git clone https://github.com/benlau/qtci.git
- source qtci/path.env
- install-qt 5.13.2
- mkdir -p build
- cd build
- cmake -DCMAKE_PREFIX_PATH=$TRAVIS_BUILD_DIR/Qt/5.13.2/gcc_64 -DRESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS=true -DRESINSIGHT_ENABLE_COTIRE=true ..
- make -j8 ResInsight_unity