forked from baidu/bigflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (27 loc) · 880 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: required
services:
- docker
os:
- linux
branches:
only:
- master
install:
- echo ok
script:
- 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
repo: baidu/bigflow
local_dir: ./doc/_build/html