0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 12:51:13 +08:00
sqlpp11/.travis.yml

46 lines
842 B
YAML
Raw Normal View History

2014-08-24 15:34:01 +08:00
language: cpp
os:
- linux
dist: focal
2016-12-25 21:16:38 +08:00
sudo: required
services:
- mysql
addons:
apt:
packages:
- sqlite3
- libboost-dev
- python-pyparsing
2014-08-24 15:34:01 +08:00
compiler:
- clang
2014-08-24 15:34:01 +08:00
- gcc
2015-05-29 23:52:34 +08:00
env:
- CONFIG=Release
- CONFIG=Release TESTS_CXX_STD=17
#- CONFIG=Debug
2015-05-29 23:52:34 +08:00
2014-08-24 15:34:01 +08:00
notifications:
email:
on_success: change
on_failure: always
2015-05-29 23:52:34 +08: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-14 05:33:16 +08: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 15:34:01 +08:00
2015-05-29 23:52:34 +08:00
script:
- cmake --build . --config $CONFIG
2015-05-29 23:52:34 +08:00
- ctest --output-on-failure
2015-05-30 05:16:50 +08:00
after_script:
- ../coveralls