加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
language: cpp
dist: trusty
matrix:
include:
- os: linux
compiler: clang
env:
- CBUILD_TYPE="Release"
- os: linux
compiler: gcc
env:
- CBUILD_TYPE="Release"
- os: osx
compiler: clang
env:
- CBUILD_TYPE="Release"
- os: osx
compiler: gcc
env:
- CBUILD_TYPE="Release"
- os: linux
compiler: clang
dist: xenial
env:
- CBUILD_TYPE="Release"
- CXXFLAGS="-fsanitize=address,undefined"
- os: linux
compiler: gcc
env:
- TYPE="coverage"
- CXXFLAGS="--coverage"
- os: linux
compiler: gcc
env:
- CBUILD_TYPE="Release"
- CXXFLAGS="-fno-exceptions"
addons:
apt:
packages:
- libboost-test-dev
- lcov
script:
- cd tests
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE="$CBUILD_TYPE" ..
- VERBOSE=1 make
- ./tsl_robin_map_tests
after_success:
- if [[ "$TYPE" == "coverage" ]]; then lcov -c -b ../../include/ -d . -o coverage.info --no-external && bash <(curl -s https://codecov.io/bash) -f coverage.info; fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化