1 Star 0 Fork 0

sdk-mir/cpptest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Sebastian Pipping 提交于 2019-01-05 00:21 . Travis: Stop at first error
# Copyright (C) 2017 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GNU LGPL v2.1 or later
language: cpp
dist: xenial
script:
- set -e
- ./autogen.sh
- compile_flags=(
-pipe
-O1
-g
-fsanitize=address
-fno-omit-frame-pointer
-Wall
-Wextra
-pedantic
)
&& CXXFLAGS="${compile_flags[*]} -std=c++11"
&& configure_args=(
CC=clang-7
CXX=clang++-7
CXXFLAGS="${CXXFLAGS}"
LDFLAGS='-g -fsanitize=address'
--enable-doc
)
&& ./configure "${configure_args[@]}" # -Werror would fail configure checks!
- make CXXFLAGS="${CXXFLAGS} -Werror" all
- make CXXFLAGS="${CXXFLAGS} -Werror" check
- ./test/mytest # i.e. ensure that the example exits with code 0
- ./test/mytest --compiler
- ./test/mytest --html
- ./test/mytest --text-terse
- ./test/mytest --text-verbose
- make distcheck # without AddressSanitizer
- ./check-abi.sh
addons:
apt:
sources:
# Clang 7:
- llvm-toolchain-xenial-7
- ubuntu-toolchain-r-test
packages:
- abi-compliance-checker
- clang-7
- doxygen
- lzip
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sdk-mir/cpptest.git
git@gitee.com:sdk-mir/cpptest.git
sdk-mir
cpptest
cpptest
master

搜索帮助