-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from PHPOffice/develop
PR 0.11.0
- Loading branch information
Showing
378 changed files
with
22,330 additions
and
7,843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,60 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3.3 | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
- 5.3.3 | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 5.3.3 | ||
- php: 5.6 | ||
- php: hhvm | ||
allow_failures: | ||
- php: hhvm | ||
|
||
env: | ||
global: | ||
- secure: "Sq+6bVtnPsu0mWX8DWQ+9bGAjxMcGorksUiHc4YIXEJsuDfVmVlH8tTD547IeCjDAx9MxXerZ2Z4HSjxTB70VEnJPvZMHI/EZn4Ny31YLHEthdZbV5Gd1h0TGp8VOzPKGShvGrtGBX6MvMfgpK4zuieVWbSfdKeecm8ZNLMpUd4=" | ||
|
||
before_script: | ||
## Composer | ||
# - curl -s http://getcomposer.org/installer | php | ||
# - php composer.phar install --prefer-source | ||
- composer self-update | ||
- composer require dompdf/dompdf:0.6.* | ||
- composer install --prefer-source | ||
## PHP_CodeSniffer | ||
- pyrus install pear/PHP_CodeSniffer | ||
- phpenv rehash | ||
## PHP Copy/Paste Detector | ||
#- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar | ||
## PHP Mess Detector | ||
#- pear config-set preferred_state beta | ||
#- printf "\n" | pecl install imagick | ||
#- pear channel-discover pear.phpmd.org | ||
#- pear channel-discover pear.pdepend.org | ||
#- pear install --alldeps phpmd/PHP_PMD | ||
#- phpenv rehash | ||
## PHPLOC | ||
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar | ||
## Packages | ||
- sudo apt-get -qq update > /dev/null | ||
- sudo apt-get -qq install graphviz > /dev/null | ||
## Composer | ||
- composer self-update | ||
- composer install --prefer-source --dev | ||
## PHP Copy/Paste Detector | ||
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar | ||
## PHP Mess Detector | ||
- pear config-set preferred_state beta | ||
- printf "\n" | pecl install imagick | ||
- pear channel-discover pear.phpmd.org | ||
- pear channel-discover pear.pdepend.org | ||
- pear install --alldeps phpmd/PHP_PMD | ||
- phpenv rehash | ||
## PHPLOC | ||
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar | ||
## PHPDocumentor | ||
- mkdir -p build/docs | ||
- mkdir -p build/coverage | ||
|
||
script: | ||
## PHP_CodeSniffer | ||
- phpcs --standard=PSR2 -n src/ --ignore=src/PhpWord/Shared/PCLZip | ||
- phpcs --standard=PSR2 -n tests/ | ||
## PHP Copy/Paste Detector | ||
#- php phpcpd.phar --verbose src/ | ||
## PHP Mess Detector | ||
#- phpmd src/ text unusedcode,naming,design | ||
## PHPLOC | ||
#- php phploc.phar src/ | ||
## PHPUnit | ||
- phpunit -c ./ --coverage-text | ||
## PHP_CodeSniffer | ||
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip | ||
## PHP Copy/Paste Detector | ||
- php phpcpd.phar src/ tests/ --verbose | ||
## PHP Mess Detector | ||
- phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php | ||
## PHPLOC | ||
#- php phploc.phar src/ | ||
## PHPUnit | ||
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage | ||
## PHPDocumentor | ||
- vendor/bin/phpdoc.php -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig" | ||
|
||
after_script: | ||
## Scrutinizer | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
## PHPDocumentor | ||
- bash .travis_shell_after_success.sh | ||
## Scrutinizer | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
echo "--DEBUG--" | ||
echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG" | ||
echo "TRAVIS_PHP_VERSION: $TRAVIS_PHP_VERSION" | ||
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST" | ||
|
||
if [ "$TRAVIS_REPO_SLUG" == "PHPOffice/PHPWord" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then | ||
|
||
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" | ||
git config --global user.name "travis-ci" | ||
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/PHPOffice/PHPWord gh-pages > /dev/null | ||
|
||
cd gh-pages | ||
echo "--DEBUG : Suppression" | ||
git rm -rf ./docs/$TRAVIS_BRANCH | ||
|
||
echo "--DEBUG : Dossier" | ||
mkdir -p docs/$TRAVIS_BRANCH | ||
mkdir -p coverage/$TRAVIS_BRANCH | ||
|
||
echo "--DEBUG : Copie" | ||
cp -Rf $HOME/docs-latest/* ./docs/$TRAVIS_BRANCH/ | ||
cp -Rf $HOME/coverage-latest/* ./coverage/$TRAVIS_BRANCH/ | ||
|
||
echo "--DEBUG : Git" | ||
git add -f . | ||
git commit -m "PHPDocumentor (Travis Build: $TRAVIS_BUILD_NUMBER - Branch: $TRAVIS_BRANCH)" | ||
git push -fq origin gh-pages > /dev/null | ||
|
||
echo -e "Published PHPDoc to gh-pages.\n" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.