forked from LiveCarta/PayPal-PHP-SDK
PHP Docs on gh-pages
This commit is contained in:
@@ -19,8 +19,12 @@ script:
|
|||||||
- phpunit
|
- phpunit
|
||||||
after_success:
|
after_success:
|
||||||
- php vendor/bin/coveralls -v -c .coveralls.yml
|
- php vendor/bin/coveralls -v -c .coveralls.yml
|
||||||
|
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then sh generate-api.sh; fi
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
- DL-PP-PHP-SDK@ebay.com
|
- DL-PP-PHP-SDK@ebay.com
|
||||||
on_success: change
|
on_success: change
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
secure: UazgSLMJmrhmO+Do9TDiu8EKop06Xc2Ghi9F/8rx/CLz2FDZ5UDdzDD8uetjfdOnmMV7oadq13FGxJb9YCqTiJPZFpKsGtEr/IcCdpkO2krluLuWw5Veh8YxRG4rcZ+UWS0JpfQ72L9Zp4dMqPRo8SzcfiZV3HMG1uKYKpTSKnM=
|
||||||
|
|||||||
20
generate-api.sh
Normal file
20
generate-api.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Get ApiGen.phar
|
||||||
|
wget http://www.apigen.org/apigen.phar
|
||||||
|
|
||||||
|
# Generate Api
|
||||||
|
php apigen.phar generate -s lib -d ../gh-pages
|
||||||
|
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
|
||||||
|
git checkout -B gh-pages
|
||||||
|
|
||||||
|
# Push generated files
|
||||||
|
git add .
|
||||||
|
git commit -m "API updated"
|
||||||
|
git push origin gh-pages -fq > /dev/null
|
||||||
Reference in New Issue
Block a user