From 7cfd4e4e865f1989f3705c27c0df6f16159d1d8d Mon Sep 17 00:00:00 2001 From: Lei Wang Date: Tue, 1 May 2018 13:37:33 -0700 Subject: [PATCH] CI: add missing python package. (#10307) --- .travis.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 79055651db6..f7ba7b53583 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,16 +36,14 @@ addons: - ccache ssh_known_hosts: 13.229.163.131 before_install: + - sudo pip install -r $TRAVIS_BUILD_DIR/python/requirements.txt + - sudo pip install wheel sphinx==1.5.6 recommonmark sphinx-rtd-theme==0.1.9 virtualenv pre-commit - | function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } script: - | # 43min timeout - if [[ "$JOB" != "doc" ]]; then - timeout 2580 paddle/scripts/paddle_docker_build.sh ${JOB} - else - timeout 2580 paddle/scritps/paddle_build.sh doc - fi + if [[ "$JOB" != "doc" ]]; then timeout 2580 paddle/scripts/paddle_docker_build.sh ${JOB}; else timeout 2580 paddle/scritps/paddle_build.sh ${JOB}; fi; if [ $? -eq 0 ] || [ $? -eq 142 ]; then true; else exit 1; fi; - | if [[ "$JOB" != "doc" ]]; then exit 0; fi; -- GitLab