46 lines
842 B
YAML
46 lines
842 B
YAML
|
language: cpp
|
||
|
|
||
|
os:
|
||
|
- linux
|
||
|
|
||
|
dist: focal
|
||
|
sudo: required
|
||
|
|
||
|
services:
|
||
|
- mysql
|
||
|
|
||
|
addons:
|
||
|
apt:
|
||
|
packages:
|
||
|
- sqlite3
|
||
|
- libboost-dev
|
||
|
- python-pyparsing
|
||
|
|
||
|
compiler:
|
||
|
- clang
|
||
|
- gcc
|
||
|
|
||
|
env:
|
||
|
- CONFIG=Release
|
||
|
- CONFIG=Release TESTS_CXX_STD=17
|
||
|
#- CONFIG=Debug
|
||
|
|
||
|
notifications:
|
||
|
email:
|
||
|
on_success: change
|
||
|
on_failure: always
|
||
|
|
||
|
before_script:
|
||
|
- mysql --version
|
||
|
- (while ! mysqladmin -u root status ; do sleep 1; done) # wait for mysql to start
|
||
|
- mysqladmin -u root create sqlpp_mysql
|
||
|
- 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
|
||
|
|
||
|
script:
|
||
|
- cmake --build . --config $CONFIG
|
||
|
- ctest --output-on-failure
|
||
|
|
||
|
after_script:
|
||
|
- ../coveralls
|