0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-12-26 07:53:21 +08:00
sqlpp11/.travis.yml

46 lines
842 B
YAML
Raw Normal View History

2014-08-24 09:34:01 +02:00
language: cpp
os:
- linux
dist: focal
2016-12-25 14:16:38 +01:00
sudo: required
services:
- mysql
addons:
apt:
packages:
- sqlite3
- libboost-dev
- python-pyparsing
2014-08-24 09:34:01 +02:00
compiler:
- clang
2014-08-24 09:34:01 +02:00
- gcc
2015-05-29 17:52:34 +02:00
env:
- CONFIG=Release
- CONFIG=Release TESTS_CXX_STD=17
#- CONFIG=Debug
2015-05-29 17:52:34 +02:00
2014-08-24 09:34:01 +02:00
notifications:
email:
on_success: change
on_failure: always
2015-05-29 17:52:34 +02:00
before_script:
- mysql --version
- (while ! mysqladmin -u root status ; do sleep 1; done) # wait for mysql to start
- mysqladmin -u root create sqlpp_mysql
2015-09-13 23:33:16 +02:00
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
- cmake -B build -DCMAKE_BUILD_TYPE=$CONFIG -DBUILD_MYSQL_CONNECTOR=ON -DBUILD_SQLITE3_CONNECTOR=ON
2014-08-24 09:34:01 +02:00
2015-05-29 17:52:34 +02:00
script:
- cmake --build . --config $CONFIG
2015-05-29 17:52:34 +02:00
- ctest --output-on-failure
2015-05-29 23:16:50 +02:00
after_script:
- ../coveralls