2014-08-24 09:34:01 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2021-05-09 08:06:14 +02:00
|
|
|
dist: focal
|
2016-12-25 14:16:38 +01:00
|
|
|
sudo: required
|
|
|
|
|
2021-08-22 13:10:14 +02:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- sqlite3
|
|
|
|
- libboost-dev
|
|
|
|
- python-pyparsing
|
|
|
|
|
2014-08-24 09:34:01 +02:00
|
|
|
compiler:
|
2016-12-25 14:32:47 +01:00
|
|
|
- clang
|
2014-08-24 09:34:01 +02:00
|
|
|
- gcc
|
|
|
|
|
2015-05-29 17:52:34 +02:00
|
|
|
env:
|
2016-12-25 14:32:47 +01:00
|
|
|
- CONFIG=Release
|
2019-01-28 10:10:08 +01:00
|
|
|
- CONFIG=Release TESTS_CXX_STD=17
|
2016-12-25 14:32:47 +01:00
|
|
|
#- 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:
|
2021-08-22 13:10:14 +02:00
|
|
|
- mysql --version
|
|
|
|
- (while ! mysqladmin -u root status ; do sleep 1; done) # wait for mysql to start
|
|
|
|
- mysqladmin -u root create sqlpp_mysql
|
2015-05-29 17:52:34 +02:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2015-09-13 23:33:16 +02:00
|
|
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
2021-08-22 13:10:14 +02:00
|
|
|
- ls ..
|
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DMYSQL_CONNECTOR=ON -DSQLITE3_CONNECTOR=ON
|
2014-08-24 09:34:01 +02:00
|
|
|
|
2015-05-29 17:52:34 +02:00
|
|
|
script:
|
2019-01-28 11:12:38 +01:00
|
|
|
- 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
|