You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/08/08 11:06:58 UTC

[incubator-servicecomb-docs] branch master updated: add .travis.yml for integrate travis ci

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 26c4324  add .travis.yml for integrate travis ci
26c4324 is described below

commit 26c4324a5ae72a08e144bec2aa3d86722685c779
Author: DeanLee <li...@huawei.com>
AuthorDate: Thu Aug 2 15:04:04 2018 +0800

    add .travis.yml for integrate travis ci
    
    update .travis.yml for  travis ci auto push source to web repo
    
    update .travis.yml logic for verifying gitbook build successfully
    
    update .travis.yml logic for pushing the web source to gitbook repo
    
    cancel .travis.yml --force option
---
 .travis.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1691fdd
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,14 @@
+script:
+  - npm install gitbook-cli -g
+  - gitbook build java-chassis-reference docs
+  - git clone --depth=10 --branch=master https://$PUSH_TARGET_URL servicecomb-java-chassis-doc
+after_success:
+  - cp -r docs/ servicecomb-java-chassis-doc/docs/
+  - cd servicecomb-java-chassis-doc
+  - git checkout -b master
+  - git add docs
+  - git commit -m "update the website docs source"
+  - git push https://$DEPLOY_TOKEN@$PUSH_TARGET_URL master
+branches:
+ only:
+  - master