0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 12:51:13 +08:00
sqlpp11/.travis.yml
Leon De Andrade d17bce9644
Add Connector CMake Logic (#394)
Add Connector Cmake logic

* Also install date when used with fetch content
* Install everything always
* Update documentation
* Add option to control dependency searching
* Adjust travis
2021-12-02 07:45:38 +01:00

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