language: php sudo: false php: 7.1 script: # Turn off XDebug to make the rest faster - phpenv config-rm xdebug.ini || return 0 after_script: - | if [[ $TRAVIS_BRANCH == "master" ]]; then cd ../../ composer require apigen/apigen --dev cd $TRAVIS_REPO_SLUG mkdir ./docs/ ../../vendor/bin/apigen generate -s ../vsp-framework/ --destination ../vsp-framework/docs/ cd ../vsp-framework/docs/ git init git remote add origin https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git git config --global user.email "travis@travis-ci.org" git config --global user.name "Travis" git add . git commit -m "PHP Document Updated." git push origin master:gh-pages -f fi