代码拉取完成,页面将自动刷新
language: cpp
compiler:
- gcc
- clang
notifications:
email:
# recipients:
on_success: change # [always|never|change] # default: change
on_failure: change # [always|never|change] # default: always
env:
global:
- secure: "LG1scRCvFAHZ2rWGLL5ShXTegKNF3+4YaT8BAZalpMWjwBbYnIbAYgFYOwCk\naUy8e5zpC8FElIctGY/9ni1wcGwQkP97YaMvcai1r0IBjbVBi8tqvqekc/5Q\n2pz8IlJXDz/WzTEVb9w7xIDfRCZq8Xiw9LpENvVwfpbrQfFJLLk="
matrix:
- _="Static analysis" VALGRIND=0 CCFLAGS="--analyze" UNIT_TESTS=0 DEBUG=0 GCCVER="" GCOV=0
- _="Build test" VALGRIND=0 UNIT_TESTS=0 DEBUG=0 GCCVER="" GCOV=0
# - _="Unit/functional tests" VALGRIND=0 UNIT_TESTS="" DEBUG=0 GCCVER="" GCOV=0
# - _="GCC 4.8 + Unit/functional tests coverage" VALGRIND=0 CCFLAGS="--usegcov --usegcc=g++-4.8" UNIT_TESTS="" DEBUG=1 GCCVER="4.8" GCOV=1
# - _="Memory error and leak tests" VALGRIND=memcheck UNIT_TESTS="" DEBUG=2 GCCVER="" GCOV=0
# - _="Race detection tests" VALGRIND=0 CCFLAGS="--usethreadsanitize --usegcc=g++-4.8" UNIT_TESTS="" DEBUG=2 GCCVER="4.8" TSAN_OPTIONS="suppressions=unittests/tsan.supp" GCOV=0
matrix:
exclude:
- compiler: gcc
env: _="Static analysis" VALGRIND=0 CCFLAGS="--analyze" UNIT_TESTS=0 DEBUG=0 GCCVER="" GCOV=0
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- if [ $CXX = "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
- if [ $CXX = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev clang-3.3; fi
- if [ $GCCVER != "" ]; then sudo apt-get install -qq g++-$GCCVER; fi
- if [ $VALGRIND != "0" ]; then sudo apt-get install -qq valgrind; fi
- git submodule update --init
script:
- if [ $DEBUG -eq 0 ]; then PREFIXPATH="x64/Release"; DEBUGBUILD=""; fi
- if [ $DEBUG -eq 1 ]; then PREFIXPATH="x64/Debug"; DEBUGBUILD="--debugbuild"; fi
- if [ $DEBUG -eq 2 ]; then PREFIXPATH="x64/Debug"; DEBUGBUILD="--optdebugbuild"; fi
- if [ $CC = "clang" ]; then scons -k --useclang=clang++-3.3 $DEBUGBUILD $CCFLAGS; else scons -k $DEBUGBUILD $CCFLAGS; fi
- if [ $VALGRIND = "memcheck" ]; then PREFIXTEST="valgrind --tool=memcheck --suppressions=unittests/memcheck.supp --track-origins=yes --track-fds=yes --leak-check=full --show-reachable=yes --error-exitcode=1"; fi
- if [ $VALGRIND = "drd" ]; then PREFIXTEST="valgrind --tool=drd --suppressions=unittests/drd.supp --error-exitcode=1"; fi
- if [ $VALGRIND = "0" ]; then PREFIXTEST=""; fi
- if [ "$UNIT_TESTS" != "0" ]; then $PREFIXTEST $PREFIXPATH/tests -s $UNIT_TESTS; fi
after_success:
- if [ $GCOV -eq 1 ]; then bash unittests/update_coveralls.sh `pwd`; fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。