From 9aec52168fed390c2fe47af75f0c16faa37c612e Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Sun, 4 May 2014 13:46:31 +0200 Subject: [PATCH] #154 : PHPDocumentor on GH-Pages --- .travis.yml | 3 ++- .travis_shell_after_success.sh | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 673ce067..713cc268 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/.travis_shell_after_success.sh b/.travis_shell_after_success.sh index 567b1acb..fe6c2d31 100644 --- a/.travis_shell_after_success.sh +++ b/.travis_shell_after_success.sh @@ -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 .