未验证 提交 abf5ac22 编写于 作者: J Jeff Wang 提交者: GitHub

Make travis fail based on scripts (#106)

* Make the travis fails if a script fails

* Update jobs with names
上级 c3254670
......@@ -14,11 +14,6 @@ services:
- docker
os:
- linux
env:
- JOB=doc
- JOB=lite_lib
- JOB=lite_lib2
- JOB=en_external_doc
addons:
apt:
......@@ -33,19 +28,16 @@ before_install:
# Load cached docker images
#- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
script:
- |
if [ $JOB == "doc" ]; then scripts/deploy_docs.sh full
fi
if [ $JOB == "lite_lib" ]; then scripts/deploy_docs.sh pybind
fi
if [ $JOB == "lite_lib2" ]; then scripts/deploy_docs.sh proto
fi
if [ $JOB == "en_external_doc" ]; then scripts/deploy_en_external_docs.sh
fi
jobs:
include:
- script: scripts/deploy_docs.sh full
name: Generate Docs
- script: scripts/deploy_docs.sh pybind
name: Cache pybind build
- script: scripts/deploy_docs.sh proto
name: Cache proto build
- script: scripts/deploy_en_external_docs.sh
name: Generate EN external docs
#before_cache:
# # Save tagged docker images
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册