0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-12-24 06:41:04 +08:00
sqlpp11/.travis.yml

49 lines
866 B
YAML
Raw Normal View History

2014-08-24 09:34:01 +02:00
language: cpp
os:
- linux
dist: focal
2016-12-25 14:16:38 +01:00
sudo: required
services:
- mysql
addons:
apt:
packages:
- sqlite3
- libboost-dev
- python-pyparsing
2014-08-24 09:34:01 +02:00
compiler:
- clang
2014-08-24 09:34:01 +02:00
- gcc
2015-05-29 17:52:34 +02:00
env:
- CONFIG=Release
- CONFIG=Release TESTS_CXX_STD=17
#- 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:
- 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
- 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:
- 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