mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Update travis script to include mysql and sqlite3
This commit is contained in:
parent
04629c1b92
commit
345b2e4931
24
.travis.yml
24
.travis.yml
@ -6,6 +6,16 @@ os:
|
|||||||
dist: focal
|
dist: focal
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
services:
|
||||||
|
- mysql
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- sqlite3
|
||||||
|
- libboost-dev
|
||||||
|
- python-pyparsing
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
@ -20,19 +30,15 @@ notifications:
|
|||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
|
||||||
install:
|
|
||||||
- g++ --version
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- mysql --version
|
||||||
|
- (while ! mysqladmin -u root status ; do sleep 1; done) # wait for mysql to start
|
||||||
|
- mysqladmin -u root create sqlpp_mysql
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- if [[ "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
|
||||||
cp -r ../scripts/ . &&
|
|
||||||
cp -r ../test_scripts/ . &&
|
|
||||||
sudo apt-get install python-pyparsing;
|
|
||||||
fi
|
|
||||||
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
||||||
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date $ADD_OPTS
|
- ls ..
|
||||||
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DMYSQL_CONNECTOR=ON -DSQLITE3_CONNECTOR=ON
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cmake --build . --config $CONFIG
|
- cmake --build . --config $CONFIG
|
||||||
|
Loading…
Reference in New Issue
Block a user