代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。