Enhancement: Check links only on PHP 5.6

This commit is contained in:
Andreas Möller 2015-07-12 23:23:46 -04:00
parent 361e906c07
commit 5251707a4a

View File

@ -8,6 +8,7 @@ matrix:
- php: 5.4 - php: 5.4
- php: 5.5 - php: 5.5
- php: 5.6 - php: 5.6
env: CHECK_LINKS=true
- php: 7 - php: 7
- php: hhvm - php: hhvm
allow_failures: allow_failures:
@ -17,10 +18,10 @@ before_install:
- composer selfupdate - composer selfupdate
install: install:
- sudo apt-get -y install pypy python-sphinx graphviz - if [[ "$CHECK_LINKS" == "true" ]]; then sudo apt-get -y install pypy python-sphinx graphviz; fi
- travis_retry composer install --no-interaction --prefer-source - travis_retry composer install --no-interaction --prefer-source
script: script:
- cd docs && make linkcheck && cd .. - if [[ "$CHECK_LINKS" == "true" ]]; then cd docs && make linkcheck && cd ..; fi
- vendor/bin/phpdoc -d src -t docs-api - vendor/bin/phpdoc -d src -t docs-api
- vendor/bin/phpunit --coverage-text - vendor/bin/phpunit --coverage-text