Update travis to use ubuntu 16.04 (xenial) (#119)

* Update travis to use ubuntu 16.04 (xenial)

Update travis to use ubuntu 16.04 (xenial) instead of 14.04 (trusty)

* add xvfb as a service to xenial distribution

* removed explicit start of xvfb

after adding the xvfb as a service, there is no reason to explicitly start it at "before_install"

* install libGL during before_install

* install libgl1-mesa-dev during "before_install"
This commit is contained in:
Nikolaos Ftylitakis 2019-07-11 18:04:47 +03:00 committed by GitHub
parent 8ec5464e78
commit 024d1e26b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
#Author: KangLin(kl222@126.com)
sudo: required
dist: trusty
dist: xenial
services:
- xvfb
language: cpp
@ -34,7 +37,7 @@ env:
before_install:
- echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}"
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev
install:
- bash ${TRAVIS_BUILD_DIR}/ci/build-install-tools.sh #> /dev/null