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

56 lines
1.8 KiB
YAML
Raw Normal View History

2014-08-24 09:34:01 +02:00
language: cpp
os:
- linux
2015-05-29 17:52:34 +02:00
- osx
2014-08-24 09:34:01 +02:00
2015-09-13 23:33:16 +02:00
osx_image: xcode7
2014-08-24 09:34:01 +02:00
compiler:
2015-05-29 17:52:34 +02:00
- clang
2014-08-24 09:34:01 +02:00
- gcc
2015-05-29 17:52:34 +02:00
env:
- CONFIG=Release
- CONFIG=Debug
2014-08-24 09:34:01 +02:00
notifications:
email:
on_success: change
on_failure: always
install:
2015-05-29 17:52:34 +02:00
- CMAKE_VERSION_MM=3.2
- CMAKE_VERSION_FULL=$CMAKE_VERSION_MM.2
2015-10-29 18:51:28 +01:00
- git clone https://github.com/HowardHinnant/date
2015-05-29 17:52:34 +02:00
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
&& sudo add-apt-repository -y ppa:apokluda/boost1.53
&& sudo apt-get update -qq
&& sudo apt-get install -qq g++-4.8 libboost1.53-dev --no-install-recommends
&& sudo update-alternatives --quiet --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.6
&& sudo update-alternatives --quiet --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.8
&& sudo update-alternatives --quiet --set gcc /usr/bin/gcc-4.8
&& wget --no-check-certificate http://www.cmake.org/files/v${CMAKE_VERSION_MM}/cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh
2015-05-29 17:52:34 +02:00
&& sudo sh cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir;
fi
2015-09-13 23:33:16 +02:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update
&& ((brew list -1 | grep -q "^$cmake\$") || brew install cmake)
&& (brew outdated cmake || brew upgrade cmake)
&& cmake --version;
fi
2014-08-24 09:34:01 +02:00
2015-05-29 17:52:34 +02:00
before_script:
- 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
2015-10-29 18:51:28 +01:00
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DDATE_INCLUDE_DIR=$PWD/../date
2014-08-24 09:34:01 +02:00
2015-05-29 17:52:34 +02:00
script:
- cmake --build . --config $CONFIG
- ctest --output-on-failure
2015-05-29 23:16:50 +02:00
after_script:
- ../coveralls