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:
@@ -7,5 +7,5 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|||||||
brew install scons sfml
|
brew install scons sfml
|
||||||
else
|
else
|
||||||
sudo apt-get update -qq
|
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
|
fi
|
||||||
|
@@ -3,7 +3,7 @@ language: cpp
|
|||||||
sudo: required
|
sudo: required
|
||||||
services: ['docker']
|
services: ['docker']
|
||||||
|
|
||||||
script: travis_wait scons --jobs=2
|
script: CXXFLAGS=-DBOOST_NO_CXX11_SCOPED_ENUMS scons
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
|
@@ -25,6 +25,9 @@ else:
|
|||||||
env.VariantDir('#build/obj', 'src')
|
env.VariantDir('#build/obj', 'src')
|
||||||
env.VariantDir('#build/obj/test', 'test')
|
env.VariantDir('#build/obj/test', 'test')
|
||||||
|
|
||||||
|
# Allow arbitrary flags
|
||||||
|
env.Append(CXXFLAGS=os.environ.get('CXXFLAGS', ''))
|
||||||
|
|
||||||
debug = ARGUMENTS.get('debug', 0)
|
debug = ARGUMENTS.get('debug', 0)
|
||||||
if int(debug):
|
if int(debug):
|
||||||
env.Append(CCFLAGS = '-g')
|
env.Append(CCFLAGS = '-g')
|
||||||
|
Reference in New Issue
Block a user