#154 : PHPDocumentor on GH-Pages
This commit is contained in:
parent
cbf0c07a74
commit
9aec52168f
|
|
@ -44,6 +44,7 @@ before_script:
|
||||||
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
|
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
|
||||||
## PHPDocumentor
|
## PHPDocumentor
|
||||||
- mkdir -p build/docs
|
- mkdir -p build/docs
|
||||||
|
- mkdir -p build/coverage
|
||||||
|
|
||||||
script:
|
script:
|
||||||
## PHP_CodeSniffer
|
## PHP_CodeSniffer
|
||||||
|
|
@ -56,7 +57,7 @@ script:
|
||||||
## PHPLOC
|
## PHPLOC
|
||||||
#- php phploc.phar src/
|
#- php phploc.phar src/
|
||||||
## PHPUnit
|
## PHPUnit
|
||||||
- phpunit -c ./ --coverage-text
|
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
|
||||||
## PHPDocumentor
|
## PHPDocumentor
|
||||||
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
|
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
|
||||||
echo -e "Publishing PHPDoc...\n"
|
echo -e "Publishing PHPDoc...\n"
|
||||||
|
|
||||||
cp -R build/docs $HOME/docs-latest
|
cp -R build/docs $HOME/docs-latest
|
||||||
|
cp -R build/coverage $HOME/coverage-latest
|
||||||
|
|
||||||
cd $HOME
|
cd $HOME
|
||||||
git config --global user.email "travis@travis-ci.org"
|
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
|
git rm -rf ./docs/$TRAVIS_BRANCH
|
||||||
|
|
||||||
echo "--DEBUG : Dossier"
|
echo "--DEBUG : Dossier"
|
||||||
|
mkdir coverage
|
||||||
|
cd coverage
|
||||||
|
mkdir $TRAVIS_BRANCH
|
||||||
|
cd ..
|
||||||
mkdir docs
|
mkdir docs
|
||||||
cd docs
|
cd docs
|
||||||
mkdir $TRAVIS_BRANCH
|
mkdir $TRAVIS_BRANCH
|
||||||
|
cd ..
|
||||||
|
|
||||||
echo "--DEBUG : Copie"
|
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"
|
echo "--DEBUG : Git"
|
||||||
git add -f .
|
git add -f .
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue