1 Star 0 Fork 0

NaNisNumber / redemption

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml.old 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
Jonathan Poelen 提交于 2019-02-04 15:10 . [travis] disable travis
language: cpp
os: linux
sudo: required
services:
- docker
if: tag IS blank
matrix:
include:
# Clang 7
- compiler: clang
env: DIST=ubuntu:18.04 INSTALL='clang-7 libc++-7-dev libc++abi-7-dev' BJAM_COMPILER=clang
# GCC 7
- compiler: gcc
env: DIST=ubuntu:18.04 INSTALL=g++ BJAM_COMPILER=gcc
before_install:
- |
PATTERN="s/g++/$INSTALL/;s/gcc/$BJAM_COMPILER/g"
echo "$PATTERN"
sed "$PATTERN" Dockerfile > $BJAM_COMPILER.dockerfile
if [ "$BJAM_COMPILER" = clang ]; then
wget -O llvm-snapshot.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key
sed -i \
-e '4iRUN apt-get -qq update\nRUN apt-get install -y gnupg\nCOPY llvm-snapshot.gpg.key .\nRUN apt-key add llvm-snapshot.gpg.key' \
-e '/mkdir/iRUN sed -i -e "s/__GLIBC__) || defined(//" /usr/include/c++/v1/__locale' \
-e 's/^# clang: //' \
$BJAM_COMPILER.dockerfile
echo -e 'using clang : : clang++-7 : <cxxflags>-fdiagnostics-color=always <cxxflags>-stdlib=libc++ <cxxflags>-Wunused-command-line-argument <linkflags>-stdlib=libc++ ;' > project-config.jam
else
echo -e 'using gcc : : g++-7 : <cxxflags>-fdiagnostics-color=always ;' > project-config.jam
fi
- cat $BJAM_COMPILER.dockerfile
- cat project-config.jam
- docker pull $DIST
script:
- docker build -f $BJAM_COMPILER.dockerfile .
# branches:
# except:
# - /^[0-9]/
notifications:
email:
recipients:
- jpoelen@wallix.com
- rzhou@wallix.com
- cgrosjean@wallix.com
- cmoroldo@wallix.com
#- mtan@wallix.com
on_success: change
on_failure: always
1
https://gitee.com/nan0/redemption.git
git@gitee.com:nan0/redemption.git
nan0
redemption
redemption
master

搜索帮助