2014-08-24 15:34:01 +08:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
compiler:
|
2014-08-24 16:20:49 +08:00
|
|
|
# - clang # disabled clang due to missing libc++
|
2014-08-24 15:34:01 +08:00
|
|
|
- gcc
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
|
|
|
|
before_install:
|
2014-08-24 16:40:14 +08:00
|
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
|
|
- sudo apt-get update
|
2015-01-31 22:40:40 +08:00
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8 libboost-dev; fi
|
2014-08-24 16:31:14 +08:00
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
2014-08-24 15:34:01 +08:00
|
|
|
|
2014-08-24 16:40:14 +08:00
|
|
|
|
2014-08-24 15:34:01 +08:00
|
|
|
install:
|
2015-01-31 22:05:53 +08:00
|
|
|
- git clone https://github.com/boostorg/preprocessor.git
|
|
|
|
- cd preprocessor
|
|
|
|
- git checkout tags/boost-1.50.0
|
2015-01-31 22:44:47 +08:00
|
|
|
- sudo cp -rf include/boost/* /usr/include/boost/
|
2015-01-31 22:05:53 +08:00
|
|
|
- ls -l /usr/include/boost/preprocessor/tuple
|
2015-01-31 22:47:40 +08:00
|
|
|
- sudo sed 's|104600|105000|' -i /usr/include/boost/version.hpp
|
2014-08-24 15:34:01 +08:00
|
|
|
- "mkdir -p $TRAVIS_BUILD_DIR/build/scripts"
|
|
|
|
- "cd $TRAVIS_BUILD_DIR/build/scripts"
|
2014-08-24 15:59:55 +08:00
|
|
|
- "cmake $TRAVIS_BUILD_DIR"
|
2014-08-24 15:34:01 +08:00
|
|
|
|
|
|
|
script:
|
|
|
|
- "cd $TRAVIS_BUILD_DIR/build/scripts"
|
|
|
|
- "make -j3"
|
|
|
|
# test compile-time constraints
|
|
|
|
- "make test_sqlpp_constraints"
|
|
|
|
|