2014-08-24 15:34:01 +08:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2016-12-25 21:32:47 +08:00
|
|
|
- osx
|
2014-08-24 15:34:01 +08:00
|
|
|
|
2020-08-08 15:42:02 +08:00
|
|
|
dist: bionic
|
2016-12-25 21:16:38 +08:00
|
|
|
sudo: required
|
|
|
|
|
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
|
|
|
|
|
|
|
|
install:
|
2016-12-25 21:32:47 +08:00
|
|
|
- g++ --version
|
2020-08-08 15:42:02 +08:00
|
|
|
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
brew upgrade cmake;
|
|
|
|
else
|
|
|
|
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null &&
|
|
|
|
sudo apt-add-repository -y "deb https://apt.kitware.com/ubuntu/ bionic main" &&
|
|
|
|
sudo apt-get update -qq -y &&
|
|
|
|
sudo apt-get install -y cmake &&
|
|
|
|
sudo rm -r /usr/local/cmake-3.12.4/;
|
|
|
|
fi'
|
2014-08-24 15:34:01 +08:00
|
|
|
|
2015-05-29 23:52:34 +08:00
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-06-13 02:03:09 +08:00
|
|
|
- if [[ "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
|
|
|
cp -r ../scripts/ . &&
|
|
|
|
cp -r ../test_scripts/ . &&
|
|
|
|
sudo apt-get install python-pyparsing;
|
|
|
|
fi
|
2015-09-14 05:33:16 +08:00
|
|
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
2019-01-28 18:24:47 +08:00
|
|
|
- if [[ -n "${TESTS_CXX_STD:-}" && "$TRAVIS_OS_NAME" = "osx" ]]; then ADD_OPTS="-DSQLPP11_TESTS_CXX_STD=$TESTS_CXX_STD"; fi
|
2019-01-28 18:12:38 +08:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date $ADD_OPTS
|
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
|