forked from LiveCarta/PayPal-PHP-SDK
Enabled auto sample docs generation to master branch
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -19,3 +19,6 @@ composer.lock
|
||||
# Project
|
||||
var
|
||||
tools
|
||||
|
||||
# Groc
|
||||
node_modules
|
||||
|
||||
@@ -1,4 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Auto Sample Docs Generation
|
||||
npm install groc
|
||||
|
||||
# Set identity
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis"
|
||||
|
||||
# Checkout Master
|
||||
git fetch; git checkout master;
|
||||
|
||||
# Run Docs Generation
|
||||
cd sample; ../node_modules/groc/bin/groc **/*.php;
|
||||
|
||||
# Add and Commit
|
||||
git add doc; git commit -m "Updates to Sample Docs";
|
||||
|
||||
# Push to Master
|
||||
git push origin master;
|
||||
|
||||
# Back to Home
|
||||
cd ..;
|
||||
|
||||
# Get ApiGen.phar
|
||||
wget http://www.apigen.org/apigen.phar
|
||||
|
||||
@@ -15,10 +38,6 @@ cp sample/index.php ../gh-pages/sample/index.html
|
||||
|
||||
cd ../gh-pages
|
||||
|
||||
# Set identity
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis"
|
||||
|
||||
# Add branch
|
||||
git init
|
||||
git remote add origin https://${GH_TOKEN}@github.com/paypal/PayPal-PHP-SDK.git > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user