parent
94be56b0ec
commit
96a47ec0ae
@ -55,7 +55,5 @@ script:
|
|||||||
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig" ; fi
|
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig" ; fi
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
## PHPDocumentor
|
|
||||||
- bash .travis_shell_after_success.sh
|
|
||||||
## Scrutinizer
|
## Scrutinizer
|
||||||
- if [ -n "$COVERAGE" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml ; fi
|
- if [ -n "$COVERAGE" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml ; fi
|
||||||
|
|||||||
@ -1,39 +0,0 @@
|
|||||||
#!/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_BRANCH" != "develop" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_PHP_VERSION" == "5.6" ]; 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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user