Skip to content

Commit 9aec521

Browse files
committed
#154 : PHPDocumentor on GH-Pages
1 parent cbf0c07 commit 9aec521

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ before_script:
4444
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
4545
## PHPDocumentor
4646
- mkdir -p build/docs
47+
- mkdir -p build/coverage
4748

4849
script:
4950
## PHP_CodeSniffer
@@ -56,7 +57,7 @@ script:
5657
## PHPLOC
5758
#- php phploc.phar src/
5859
## PHPUnit
59-
- phpunit -c ./ --coverage-text
60+
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
6061
## PHPDocumentor
6162
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
6263

.travis_shell_after_success.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
1010
echo -e "Publishing PHPDoc...\n"
1111

1212
cp -R build/docs $HOME/docs-latest
13+
cp -R build/coverage $HOME/coverage-latest
1314

1415
cd $HOME
1516
git config --global user.email "[email protected]"
@@ -21,12 +22,18 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
2122
git rm -rf ./docs/$TRAVIS_BRANCH
2223

2324
echo "--DEBUG : Dossier"
25+
mkdir coverage
26+
cd coverage
27+
mkdir $TRAVIS_BRANCH
28+
cd ..
2429
mkdir docs
2530
cd docs
2631
mkdir $TRAVIS_BRANCH
32+
cd ..
2733

2834
echo "--DEBUG : Copie"
29-
cp -Rf $HOME/docs-latest/* ./$TRAVIS_BRANCH/
35+
cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/
36+
cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/
3037

3138
echo "--DEBUG : Git"
3239
git add -f .

0 commit comments

Comments
 (0)