0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00
sqlpp11/.travis.yml

59 lines
1.8 KiB
YAML
Raw Normal View History

2014-08-24 15:34:01 +08:00
language: cpp
os:
- linux
2015-05-29 23:52:34 +08:00
- osx
2014-08-24 15:34:01 +08:00
2015-09-14 05:33:16 +08:00
osx_image: xcode7
2014-08-24 15:34:01 +08:00
compiler:
2015-05-29 23:52:34 +08:00
- clang
2014-08-24 15:34:01 +08:00
- gcc
2015-05-29 23:52:34 +08:00
env:
- CONFIG=Release
- CONFIG=Debug
2014-08-24 15:34:01 +08:00
notifications:
email:
on_success: change
on_failure: always
install:
2015-05-29 23:52:34 +08:00
- CMAKE_VERSION_MM=3.2
- CMAKE_VERSION_FULL=$CMAKE_VERSION_MM.2
2015-10-30 01:51:28 +08:00
- git clone https://github.com/HowardHinnant/date
- cd date
- git checkout tags/v1.0.0
- cd ..
2015-05-29 23:52:34 +08: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 23:52:34 +08:00
&& sudo sh cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir;
fi
2015-09-14 05:33:16 +08: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 15:34:01 +08:00
2015-05-29 23:52:34 +08:00
before_script:
- mkdir build
- cd build
2015-09-14 05:33:16 +08:00
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date
2014-08-24 15:34:01 +08:00
2015-05-29 23:52:34 +08:00
script:
- cmake --build . --config $CONFIG
- ctest --output-on-failure
2015-05-30 05:16:50 +08:00
after_script:
- ../coveralls