From 484d256b3d0611dab07627af81a3fbbfae3a3f59 Mon Sep 17 00:00:00 2001 From: Xianjin YE Date: Mon, 27 Nov 2017 15:45:53 +0800 Subject: [PATCH] Try to speed up travis build. Also only build doc and deploy on specified conditions. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index de42fe1..28e33b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: - echo ok script: - - docker run -t -v $PWD:/root/bigflow centos:7.1.1503 bash -c "export MAKEFLAGS='-j 2';yum install sudo -y -q && cd /root/bigflow/build_support && sh -x build_deps.sh && source ./environment && mkdir /root/bigflow/build && cd /root/bigflow/build && cmake .. && make && make release && cd /root/bigflow/bigflow_python/python && PARALLEL_NUM=2 sh run-tests && cd /root/bigflow/doc/ && sh generate_doc.sh" + - docker run -t -v $PWD:/root/bigflow centos:7.1.1503 bash -c "export MAKEFLAGS='-j 4';yum install sudo -y -q && cd /root/bigflow/build_support && sh -x build_deps.sh && source ./environment && mkdir /root/bigflow/build && cd /root/bigflow/build && cmake .. && make && make release && cd /root/bigflow/bigflow_python/python && PARALLEL_NUM=4 sh run-tests && cd /root/bigflow/doc/ && sh generate_doc.sh" deploy: @@ -22,9 +22,13 @@ deploy: api_key: $GITHUB_TOKEN file: "bigflow_python/output/bigflow_python.tar.gz" skip_cleanup: true + on: + repo: baidu/bigflow + tags: true - provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN on: branch: master - local_dir: ./doc/_build/html \ No newline at end of file + repo: baidu/bigflow + local_dir: ./doc/_build/html