0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Exclude clang from Travis and use g++-4.8

clang is missing libc++ (might add that later)
This commit is contained in:
Roland Bock 2014-08-24 10:20:49 +02:00
parent 411022469f
commit 3c3abfab41

View File

@ -2,35 +2,23 @@ language: cpp
os: os:
- linux - linux
- osx
compiler: compiler:
- clang # - clang # disabled clang due to missing libc++
- gcc - gcc
matrix:
# This excludes OSX builds from the build matrix for gcc
exclude:
- os: osx
compiler: gcc
notifications: notifications:
email: email:
on_success: change on_success: change
on_failure: always on_failure: always
before_install: before_install:
- "if [ $CC = 'gcc' ]; then export CXX=g++; fi" - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- "if [ $CC = 'clang' ]; then export CXX=clang++; fi" - if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew install cmake; fi"
# Install cpp-coveralls for reporting test coverage under only linux, see https://github.com/eddyxu/cpp-coveralls
#- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo pip install cpp-coveralls; fi"
install: install:
- "mkdir -p $TRAVIS_BUILD_DIR/build/scripts" - "mkdir -p $TRAVIS_BUILD_DIR/build/scripts"
- "cd $TRAVIS_BUILD_DIR/build/scripts" - "cd $TRAVIS_BUILD_DIR/build/scripts"
# Enable test coverage for travis-ci build
#- "cmake $TRAVIS_BUILD_DIR/src -DNTA_COV_ENABLED=ON"
- "cmake $TRAVIS_BUILD_DIR" - "cmake $TRAVIS_BUILD_DIR"
script: script:
@ -39,10 +27,3 @@ script:
# test compile-time constraints # test compile-time constraints
- "make test_sqlpp_constraints" - "make test_sqlpp_constraints"
after_success:
- "cd $TRAVIS_BUILD_DIR"
# Send test coverage report to http://coveralls.io under only linux
# - "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then coveralls --exclude external --exclude doc --exclude src/test; fi"