未验证 提交 5769da89 编写于 作者: V vit9696 提交者: GitHub

build: replace set -e with direct exit calls

This is necessary, because cov script returns failure status code, despite actually submitting the build.
上级 0a5ba559
......@@ -28,14 +28,11 @@ matrix:
compiler: clang
before_install:
- set -e
- curl -Ls https://entrust.com/root-certificates/entrust_l1k.cer -o ~/entrust_l1k.crt
- curl -LS https://curl.haxx.se/ca/cacert.pem -o ~/cacert.pem
- cat ~/entrust_l1k.crt >> ~/cacert.pem
- if [ -f ~/.curlrc ]; then echo "Dropping old ~/.curlrc:" ; cat ~/.curlrc ; fi
- echo "cacert=\"$HOME/cacert.pem\"" > ~/.curlrc
- if [ -f ~/.wgetrc ]; then echo "Dropping old ~/.wgetrc:" ; cat ~/.wgetrc ; fi
- echo "ca_certificate=$HOME/cacert.pem" > ~/.wgetrc
- curl -Ls https://entrust.com/root-certificates/entrust_l1k.cer -o ~/entrust_l1k.crt || exit 1
- curl -LS https://curl.haxx.se/ca/cacert.pem -o ~/cacert.pem || exit 1
- cat ~/entrust_l1k.crt >> ~/cacert.pem || exit 1
- echo "cacert=\"$HOME/cacert.pem\"" > ~/.curlrc || exit 1
- echo "ca_certificate=$HOME/cacert.pem" > ~/.wgetrc || exit 1
script:
- echo "This script runs coverity..."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册