未验证 提交 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: ...@@ -14,11 +14,6 @@ services:
- docker - docker
os: os:
- linux - linux
env:
- JOB=doc
- JOB=lite_lib
- JOB=lite_lib2
- JOB=en_external_doc
addons: addons:
apt: apt:
...@@ -32,20 +27,17 @@ before_install: ...@@ -32,20 +27,17 @@ before_install:
- sudo pip install pylint pytest astroid isort - sudo pip install pylint pytest astroid isort
# Load cached docker images # Load cached docker images
#- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi #- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
script: jobs:
- | include:
if [ $JOB == "doc" ]; then scripts/deploy_docs.sh full - script: scripts/deploy_docs.sh full
fi name: Generate Docs
- script: scripts/deploy_docs.sh pybind
if [ $JOB == "lite_lib" ]; then scripts/deploy_docs.sh pybind name: Cache pybind build
fi - script: scripts/deploy_docs.sh proto
name: Cache proto build
if [ $JOB == "lite_lib2" ]; then scripts/deploy_docs.sh proto - script: scripts/deploy_en_external_docs.sh
fi name: Generate EN external docs
if [ $JOB == "en_external_doc" ]; then scripts/deploy_en_external_docs.sh
fi
#before_cache: #before_cache:
# # Save tagged docker images # # Save tagged docker images
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册