Fix travis for Linux build

Several issues was detected with linux build:
- travis_wait raise timeout
- --jobs=2 sometimes fails
- add flag BOOST_NO_CXX11_SCOPED_ENUMS to fix compilation with old boost filesystme
- add missing tool xmllint
This commit is contained in:
Michael Bonfils
2018-03-06 20:37:58 +01:00
committed by Celtic Minstrel
parent d1838991a8
commit 69589afff7
3 changed files with 5 additions and 2 deletions

View File

@@ -7,5 +7,5 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew install scons sfml
else
sudo apt-get update -qq
sudo apt-get install -qq libsfml-dev libboost-dev libboost-filesystem-dev libboost-thread-dev
sudo apt-get install -qq libsfml-dev libboost-dev libboost-filesystem-dev libboost-thread-dev libxml2-utils
fi

View File

@@ -3,7 +3,7 @@ language: cpp
sudo: required
services: ['docker']
script: travis_wait scons --jobs=2
script: CXXFLAGS=-DBOOST_NO_CXX11_SCOPED_ENUMS scons
compiler:
- clang

View File

@@ -25,6 +25,9 @@ else:
env.VariantDir('#build/obj', 'src')
env.VariantDir('#build/obj/test', 'test')
# Allow arbitrary flags
env.Append(CXXFLAGS=os.environ.get('CXXFLAGS', ''))
debug = ARGUMENTS.get('debug', 0)
if int(debug):
env.Append(CCFLAGS = '-g')