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

Remove paddle/script/travis/main.sh

上级 72c1a7fb
......@@ -9,8 +9,8 @@ dist: trusty
os:
- linux
env:
- JOB=DOCS
- JOB=PRE_COMMIT
- JOB=build_doc
- JOB=check_style
addons:
apt:
packages:
......@@ -32,7 +32,7 @@ addons:
- libtool
- ccache
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
# 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
......@@ -41,9 +41,7 @@ before_install:
- |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
script:
- |
timeout 2580 paddle/scripts/travis/main.sh # 43min timeout
RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else false; fi;
- paddle/scripts/travis/$JOB.sh
notifications:
email:
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.
先完成此消息的编辑!
想要评论请 注册