Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
language: php

php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm

matrix:
allow_failures:
- php: 7
fast_finish: true
include:
- php: 5.3.3
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
env: CHECK_LINKS=true BUILD_DOCS=true
- php: 7
- php: hhvm
allow_failures:
- php: 7

install:
- sudo apt-get -y install pypy python-sphinx graphviz
before_install:
- composer selfupdate
- travis_retry composer update --no-interaction --prefer-source

install:
- travis_retry composer install --no-interaction --prefer-source
- if [[ "$CHECK_LINKS" == "true" ]]; then sudo apt-get -y install pypy python-sphinx graphviz; fi

script:
- cd docs && make linkcheck && cd ..
- vendor/bin/phpdoc -d src -t docs-api
- vendor/bin/phpunit --coverage-text
- if [[ "$CHECK_LINKS" == "true" ]]; then cd docs && make linkcheck && cd ..; fi
- if [[ "$BUILD_DOCS" == "true" ]]; then vendor/bin/phpdoc -d src -t docs-api; fi