代码拉取完成,页面将自动刷新
language: cpp
os:
- linux
- osx
sudo: required
dist: trusty
services:
- mysql
addons:
apt:
packages:
#- mysql-server-5.6
#- mysql-client-core-5.6
#- mysql-client-5.6
- libboost-dev
compiler:
- clang
- gcc
env:
- CONFIG=Release
#- CONFIG=Debug
notifications:
email:
on_success: change
on_failure: always
install:
- pwd
- PROJECT_DIR="$PWD"
- BRANCH=`git rev-parse --abbrev-ref HEAD`
- cd ..
- pwd
- git clone https://github.com/HowardHinnant/date
- cd date
- git checkout tags/v2.4
- cd ..
- git clone https://github.com/rbock/sqlpp11
- if [ "$BRANCH" != "master" ]; then
cd sqlpp11
&& git checkout develop
&& cd ..
;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update
&& brew install mysql
&& brew services start mysql
;
fi
- mysql --version
- (while ! mysqladmin -u root status ; do sleep 1; done) # wait for mysql to start
- mysqladmin -u root create sqlpp_mysql
- cd "$PROJECT_DIR"
before_script:
- mkdir build
- cd build
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG
script:
- make VERBOSE=1
- cmake --build . --config $CONFIG
- ctest --output-on-failure
after_script:
- ../coveralls
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。