You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/08/06 06:52:10 UTC

[GitHub] imlidian commented on a change in pull request #26: .travis.yml for integrate travis ci

imlidian commented on a change in pull request #26: .travis.yml for integrate travis ci
URL: https://github.com/apache/incubator-servicecomb-docs/pull/26#discussion_r207788455
 
 

 ##########
 File path: .travis.yml
 ##########
 @@ -1,28 +1,12 @@
-language: ruby
-rvm:
-  - 2.5.1
-gvm: 
-  - 2.7.7
-before_install:
-  - echo "start"
-  
 script:
-  #- gem install jekyll bundler
- # - bundle install
- # - npm install gitbook-cli -g
-  #- cd script
-  - git clone https://github.com/apache/incubator-servicecomb-docs.git
-  #- gitbook build incubator-servicecomb-docs/java-chassis-reference ../users/servicecomb-java-chassis-doc
-  #- cd ..
-  #- bundle exec jekyll build --config _config.yml
-
+  - git clone --depth=10 --branch=master https://GIT_URL incubator-servicecomb-website
+  - cp -r java-chassis-reference incubator-servicecomb-website/users/servicecomb-java-chassis-doc
+	- cd incubator-servicecomb-website
 after_success:
-
-  #- git checkout -b asf-site
-  - git add .
+  - git checkout -b master
+  - git add users/servicecomb-java-chassis-doc/java-chassis-reference/
   - git commit -m "update the website docs source"
   - git push --force https://$DEPLOY_TOKEN@$GIT_URL maser
 
 Review comment:
   yes, It has the authorization to do this. As you can see DEPLOY_TOKEN in Travis ci environment variable, so we can check in directly.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services