#154 : PHPDocumentor on GH-Pages

This commit is contained in:
Progi1984 2014-05-04 13:46:31 +02:00
parent cbf0c07a74
commit 9aec52168f
2 changed files with 10 additions and 2 deletions

View File

@ -44,6 +44,7 @@ before_script:
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
## PHPDocumentor
- mkdir -p build/docs
- mkdir -p build/coverage
script:
## PHP_CodeSniffer
@ -56,7 +57,7 @@ script:
## PHPLOC
#- php phploc.phar src/
## PHPUnit
- phpunit -c ./ --coverage-text
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
## PHPDocumentor
- vendor/bin/phpdoc.php -d ./src -t ./build/docs

View File

@ -10,6 +10,7 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
echo -e "Publishing PHPDoc...\n"
cp -R build/docs $HOME/docs-latest
cp -R build/coverage $HOME/coverage-latest
cd $HOME
git config --global user.email "travis@travis-ci.org"
@ -21,12 +22,18 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
git rm -rf ./docs/$TRAVIS_BRANCH
echo "--DEBUG : Dossier"
mkdir coverage
cd coverage
mkdir $TRAVIS_BRANCH
cd ..
mkdir docs
cd docs
mkdir $TRAVIS_BRANCH
cd ..
echo "--DEBUG : Copie"
cp -Rf $HOME/docs-latest/* ./$TRAVIS_BRANCH/
cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/
cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/
echo "--DEBUG : Git"
git add -f .