Permalink
Browse files

Added .travis.yml

  • Loading branch information...
1 parent 49310b1 commit ebc7762ff0f599b9200579dd3803e2495f1f4fa4 @glynos glynos committed Dec 16, 2013
Showing with 38 additions and 0 deletions.
  1. +38 −0 .travis.yml
View
@@ -0,0 +1,38 @@
+language:
+ - cpp
+
+compiler:
+ - clang
+ - gcc
+
+env:
+ - BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Release"
+ - BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Release"
+ - BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Debug"
+ - BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Debug"
+
+before_install:
+ - sudo add-apt-repository ppa:apokluda/boost1.53 --yes
+ - sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes # libstdc++-4.8
+ - if [ "${CXX}" == "clang++" ]; then sudo add-apt-repository --yes ppa:h-rayflood/llvm; fi # clang++-3.2
+ - sudo apt-get update
+
+install:
+ - if [ "${CXX}" == "clang++" ]; then sudo apt-get -qq install clang-3.2; fi
+ - sudo apt-get install g++-4.8; # clang need it for libstdc++ update
+ - sudo apt-get install libboost-system1.53-dev
+ - sudo apt-get install libboost-regex1.53-dev
+ - sudo apt-get install libboost-filesystem1.53-dev
+
+before_script:
+ # update compilers
+ - if [ "${CXX}" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
+ - if [ "${CXX}" == "clang++" ]; then export CXX="clang++-3.2" CC="clang-3.2"; fi
+
+script:
+ - mkdir _build
+ - cd _build
+ # Note: clang not support libc++
+ - cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DCPP-NETLIB_DISABLE_LIBCXX=YES -DCPP-NETLIB_DISABLE_FEATURE_TESTS=YES ..
+ - make
+ - make test

0 comments on commit ebc7762

Please sign in to comment.