mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
language: cpp
|
|
|
|
os:
|
|
- linux
|
|
|
|
compiler:
|
|
# - clang # disabled clang due to missing libc++
|
|
- gcc
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|
|
|
|
before_install:
|
|
# install boost 1.50 (headers only), travis currently offers 1.46 and 1.48
|
|
- wget http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download -O /tmp/boost.tar.bz2
|
|
- mkdir -p temp
|
|
- cd temp
|
|
- tar jxf /tmp/boost.tar.bz2 boost_1_50_0/boost # extract headers only
|
|
- sudo mkdir -p /usr/local/include/
|
|
- sudo ln -s $PWD/boost_1_50_0/boost /usr/local/include
|
|
- cd ..
|
|
#install g++-4.8
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
- sudo apt-get update
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8; fi
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
|
|
|
|
install:
|
|
- "mkdir -p $TRAVIS_BUILD_DIR/build/scripts"
|
|
- "cd $TRAVIS_BUILD_DIR/build/scripts"
|
|
- "cmake $TRAVIS_BUILD_DIR"
|
|
|
|
script:
|
|
- "cd $TRAVIS_BUILD_DIR/build/scripts"
|
|
- "make -j3"
|
|
# test compile-time constraints
|
|
- "make test_sqlpp_constraints"
|
|
|