2014-08-24 15:34:01 +08:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2021-05-09 14:06:14 +08:00
|
|
|
dist: focal
|
2016-12-25 21:16:38 +08:00
|
|
|
sudo: required
|
|
|
|
|
2021-08-22 19:10:14 +08:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- sqlite3
|
|
|
|
- libboost-dev
|
|
|
|
- python-pyparsing
|
|
|
|
|
2014-08-24 15:34:01 +08:00
|
|
|
compiler:
|
2016-12-25 21:32:47 +08:00
|
|
|
- clang
|
2014-08-24 15:34:01 +08:00
|
|
|
- gcc
|
|
|
|
|
2015-05-29 23:52:34 +08:00
|
|
|
env:
|
2016-12-25 21:32:47 +08:00
|
|
|
- CONFIG=Release
|
2019-01-28 17:10:08 +08:00
|
|
|
- CONFIG=Release TESTS_CXX_STD=17
|
2016-12-25 21:32:47 +08:00
|
|
|
#- 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:
|
2021-08-22 19:10:14 +08: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 23:52:34 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2015-09-14 05:33:16 +08:00
|
|
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
2021-08-22 19:10:14 +08:00
|
|
|
- ls ..
|
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DMYSQL_CONNECTOR=ON -DSQLITE3_CONNECTOR=ON
|
2014-08-24 15:34:01 +08:00
|
|
|
|
2015-05-29 23:52:34 +08:00
|
|
|
script:
|
2019-01-28 18:12:38 +08:00
|
|
|
- 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
|