提交 0cbe120d 编写于 作者: Y Yi Wang

Remove paddle/script/travis/main.sh

上级 72c1a7fb
...@@ -9,8 +9,8 @@ dist: trusty ...@@ -9,8 +9,8 @@ dist: trusty
os: os:
- linux - linux
env: env:
- JOB=DOCS - JOB=build_doc
- JOB=PRE_COMMIT - JOB=check_style
addons: addons:
apt: apt:
packages: packages:
...@@ -32,7 +32,7 @@ addons: ...@@ -32,7 +32,7 @@ addons:
- libtool - libtool
- ccache - ccache
before_install: before_install:
- if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi - if [[ "$JOB" == "check_style" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
# Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python # Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python
# protobuf version. # protobuf version.
- pip install numpy wheel 'protobuf==3.1' sphinx==1.5.6 recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit requests==2.9.2 LinkChecker - pip install numpy wheel 'protobuf==3.1' sphinx==1.5.6 recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit requests==2.9.2 LinkChecker
...@@ -41,9 +41,7 @@ before_install: ...@@ -41,9 +41,7 @@ before_install:
- | - |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
script: script:
- | - paddle/scripts/travis/$JOB.sh
timeout 2580 paddle/scripts/travis/main.sh # 43min timeout
RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else false; fi;
notifications: notifications:
email: email:
on_success: change on_success: change
......
#!/bin/bash
cd `dirname $0`
if [ ${JOB} == "DOCS" ]; then
./build_doc.sh
elif [ ${JOB} == "PRE_COMMIT" ]; then
./check_style.sh
else
echo "Unknown Travis CI job: ${JOB}"
exit 0 # Don't fail due to unknown Travis CI job.
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册