File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ before_script:
44
44
# - curl -o phploc.phar https://phar.phpunit.de/phploc.phar
45
45
# # PHPDocumentor
46
46
- mkdir -p build/docs
47
+ - mkdir -p build/coverage
47
48
48
49
script :
49
50
# # PHP_CodeSniffer
@@ -56,7 +57,7 @@ script:
56
57
# # PHPLOC
57
58
# - php phploc.phar src/
58
59
# # PHPUnit
59
- - phpunit -c ./ --coverage-text
60
+ - phpunit -c ./ --coverage-text --coverage-html ./build/coverage
60
61
# # PHPDocumentor
61
62
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
62
63
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
10
10
echo -e " Publishing PHPDoc...\n"
11
11
12
12
cp -R build/docs $HOME /docs-latest
13
+ cp -R build/coverage $HOME /coverage-latest
13
14
14
15
cd $HOME
15
16
git config --global user.email
" [email protected] "
@@ -21,12 +22,18 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
21
22
git rm -rf ./docs/$TRAVIS_BRANCH
22
23
23
24
echo " --DEBUG : Dossier"
25
+ mkdir coverage
26
+ cd coverage
27
+ mkdir $TRAVIS_BRANCH
28
+ cd ..
24
29
mkdir docs
25
30
cd docs
26
31
mkdir $TRAVIS_BRANCH
32
+ cd ..
27
33
28
34
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 /
30
37
31
38
echo " --DEBUG : Git"
32
39
git add -f .
You can’t perform that action at this time.
0 commit comments