0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Started to integrate with Travis CI

This commit is contained in:
rbock 2014-08-24 09:34:01 +02:00
parent dfe9e19145
commit 5188a82980

48
.travis.yml Normal file
View File

@ -0,0 +1,48 @@
language: cpp
os:
- linux
- osx
compiler:
- clang
- gcc
matrix:
# This excludes OSX builds from the build matrix for gcc
exclude:
- os: osx
compiler: gcc
notifications:
email:
on_success: change
on_failure: always
before_install:
- "if [ $CC = 'gcc' ]; then export CXX=g++; fi"
- "if [ $CC = 'clang' ]; then export CXX=clang++; 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:
- "mkdir -p $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/src"
script:
- "cd $TRAVIS_BUILD_DIR/build/scripts"
- "make -j3"
# test compile-time 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"