0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00
sqlpp11/.travis.yml
Roland Bock 651a69d29f Update travis config
Travis is supporting open source projects with free-of-cost CI.
Testing on OSX comes with extra costs for them while not
providing a whole lot of extra value compared to Linux.

Stop testing on OSX seems like the right step at this point.
2021-05-09 08:21:10 +02:00

43 lines
820 B
YAML

language: cpp
os:
- linux
dist: focal
sudo: required
compiler:
- clang
- gcc
env:
- CONFIG=Release
- CONFIG=Release TESTS_CXX_STD=17
#- CONFIG=Debug
notifications:
email:
on_success: change
on_failure: always
install:
- g++ --version
before_script:
- mkdir 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
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date $ADD_OPTS
script:
- cmake --build . --config $CONFIG
- ctest --output-on-failure
after_script:
- ../coveralls