Skip to content

Commit

Permalink
Try to speed up travis build.
Browse files Browse the repository at this point in the history
Also only build doc and deploy on specified conditions.
  • Loading branch information
advancedxy committed Nov 27, 2017
1 parent 7fda239 commit 2c9b779
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ 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:
- provider: releases
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
repo: baidu/bigflow
local_dir: ./doc/_build/html

0 comments on commit 2c9b779

Please sign in to comment.