代码拉取完成,页面将自动刷新
language: cpp
cache:
directories:
- $HOME/ccache
sudo: required
services:
- docker
os:
- linux
env:
- JOB=build_doc
- JOB=build
branches:
only:
- master
install:
- echo ok
script:
- |
if [[ "$JOB" == "build" ]]; then docker run -t -v $PWD:/root/bigflow -v $HOME/ccache:/root/ccache 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 .. && export CCACHE_DIR=/root/ccache; CC='ccache gcc' CXX='ccache g++' make && make release > release.log && cd /root/bigflow/bigflow_python/python && PARALLEL_NUM=4 sh run-tests"; fi;
if [[ "$JOB" == "build_doc" ]]; then docker run -t -v $PWD:/root/bigflow centos:7.1.1503 bash -c "yum install sudo wget curl tar -y -q && cd /root/bigflow/build_support && sh -x build_deps.sh && source ./environment && mkdir /root/bigflow/jq && cd /root/bigflow/jq && wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -O jq && chmod +x ./jq && mkdir /root/bigflow/lastest_release && cd /root/bigflow/lastest_release && curl -s https://api.github.com/repos/baidu/bigflow/releases/latest | /root/bigflow/jq/jq -r '.assets[] | .browser_download_url' | xargs wget && tar zxf bigflow_python.tar.gz && cp -r python_runtime /root/bigflow/bigflow_python/python && cp flume/worker /root/bigflow/bigflow_python/python/flume && mkdir /root/bigflow/doc_po_file && cd /root/bigflow/doc_po_file && git clone -b doc https://github.com/baidu/bigflow.git && cp -r /root/bigflow/doc_po_file/bigflow/doc/locales /root/bigflow/doc/ && cd /root/bigflow/doc/ && sh generate_doc.sh"; fi;
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file: "bigflow_python/output/bigflow_python.tar.gz"
skip_cleanup: true
on:
repo: baidu/bigflow
tags: true
condition: "$JOB = build"
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
repo: baidu/bigflow
condition: "$JOB = build_doc"
local_dir: ./doc/html
- provider: script
skip_cleanup: true
github_token: $GITHUB_TOKEN
script: chmod +x scripts/build_doc_po_file.sh && scripts/build_doc_po_file.sh
on:
branch: master
repo: baidu/bigflow
condition: "$JOB = build_doc"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。