Add C++11 support to travis-ci
authorkhizmax <khizmax@gmail.com>
Thu, 5 Mar 2015 11:11:20 +0000 (14:11 +0300)
committerkhizmax <khizmax@gmail.com>
Thu, 5 Mar 2015 11:11:20 +0000 (14:11 +0300)
.travis.yml
build/build.sh

index c19e682..1e72fb3 100644 (file)
@@ -1,14 +1,25 @@
 \r
 language: cpp\r
-compiler: clang\r
+compiler: g++\r
 #  - gcc\r
 #  - clang\r
-#before_install:\r
-#install:\r
+\r
+before_install:\r
+    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test\r
+    - sudo apt-get update -qq\r
+\r
+install:\r
+    - sudo apt-get install -qq g++-4.8\r
+    - export CXX="g++-4.8"\r
+\r
 before_script: cd ./build\r
+\r
 script: ./build.sh -b 64 -j 4 -x ${CXX} -z '-std=c++0x -Wall -Wextra -pedantic' -t test_hdr\r
+\r
 #after_success:\r
+\r
 #after_failure:\r
+\r
 after_script: cd ..\r
 \r
 # blacklist\r
index 7e79549..621ffd5 100755 (executable)
@@ -453,7 +453,7 @@ cxx_debug_options="-D_DEBUG -O0 -g $cxx_debug_options"
 cxx_release_options="-DNDEBUG $cxx_release_optimization $cxx_release_options"
 
 
-if test $BOOST_INCLUDE_PATH != ''; then
+if test '$BOOST_INCLUDE_PATH' != ''; then
        buildCXXflags="$buildCXXflags -I$BOOST_INCLUDE_PATH"
 fi