-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
25 lines (23 loc) · 812 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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