Skip to content

Commit f7b4542

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 2ae47e7 + 06462fb commit f7b4542

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ env:
1919
- secure: "Sq+6bVtnPsu0mWX8DWQ+9bGAjxMcGorksUiHc4YIXEJsuDfVmVlH8tTD547IeCjDAx9MxXerZ2Z4HSjxTB70VEnJPvZMHI/EZn4Ny31YLHEthdZbV5Gd1h0TGp8VOzPKGShvGrtGBX6MvMfgpK4zuieVWbSfdKeecm8ZNLMpUd4="
2020

2121
before_script:
22+
## Packages
23+
- sudo apt-get -qq update > /dev/null
24+
- sudo apt-get -qq install graphviz > /dev/null
2225
## Composer
2326
# - curl -s http://getcomposer.org/installer | php
2427
# - php composer.phar install --prefer-source
@@ -41,6 +44,7 @@ before_script:
4144
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
4245
## PHPDocumentor
4346
- mkdir -p build/docs
47+
- mkdir -p build/coverage
4448

4549
script:
4650
## PHP_CodeSniffer
@@ -53,7 +57,7 @@ script:
5357
## PHPLOC
5458
#- php phploc.phar src/
5559
## PHPUnit
56-
- phpunit -c ./ --coverage-text
60+
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
5761
## PHPDocumentor
5862
- vendor/bin/phpdoc.php -d ./src -t ./build/docs
5963

.travis_shell_after_success.sh

Lines changed: 5 additions & 4 deletions
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,12 @@ if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" ==
2122
git rm -rf ./docs/$TRAVIS_BRANCH
2223

2324
echo "--DEBUG : Dossier"
24-
mkdir docs
25-
cd docs
26-
mkdir $TRAVIS_BRANCH
25+
mkdir -p docs/$TRAVIS_BRANCH
26+
mkdir -p coverage/$TRAVIS_BRANCH
2727

2828
echo "--DEBUG : Copie"
29-
cp -Rf $HOME/docs-latest/* ./$TRAVIS_BRANCH/
29+
cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/
30+
cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/
3031

3132
echo "--DEBUG : Git"
3233
git add -f .

0 commit comments

Comments
 (0)