2012-12-31 03:01:19 +05:30
|
|
|
language: php
|
|
|
|
|
2015-04-05 21:37:10 +05:30
|
|
|
sudo: false
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
|
2012-12-31 03:01:19 +05:30
|
|
|
php:
|
|
|
|
- 5.4
|
2013-08-08 18:55:17 +05:30
|
|
|
- 5.5
|
2014-02-11 22:57:35 +05:30
|
|
|
- 5.6
|
2015-04-05 21:37:10 +05:30
|
|
|
- 7.0
|
2013-12-19 18:02:09 +05:30
|
|
|
- hhvm
|
2015-04-05 21:37:10 +05:30
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- php: 7.0
|
|
|
|
fast_finish: true
|
2014-01-16 22:23:44 +05:30
|
|
|
|
2014-11-09 00:06:59 +05:30
|
|
|
install:
|
|
|
|
- travis_retry composer install --no-interaction --prefer-source
|
2014-05-03 15:48:09 +05:30
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir -p build/logs
|
2014-12-11 19:50:53 +05:30
|
|
|
- phpunit --coverage-text --verbose --coverage-clover=coverage.clover --coverage-html coverage
|
2014-10-01 03:37:00 +05:30
|
|
|
|
|
|
|
after_script:
|
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
2014-11-09 00:06:59 +05:30
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
2014-12-11 19:50:53 +05:30
|
|
|
- git config --global user.email "travis@travis-ci.org"
|
|
|
|
- git config --global user.name "TravisCI"
|
|
|
|
- cp -R coverage ${HOME}/coverage
|
|
|
|
- cd ${HOME}
|
|
|
|
- git clone --quiet --branch=gh-pages https://${GITHUBTOKEN}@github.com/thephpleague/oauth2-server.git gh-pages > /dev/null
|
|
|
|
- cd gh-pages
|
|
|
|
- mkdir ${TRAVIS_BRANCH}
|
|
|
|
- cd ${TRAVIS_BRANCH}
|
|
|
|
- cp -Rf $HOME/coverage/* .
|
|
|
|
- git add -f .
|
|
|
|
- git commit -m "Travis pushed coverage of ${TRAVIS_COMMIT}@${TRAVIS_BRANCH} to gh-pages"
|
|
|
|
- git push -fq origin gh-pages > /dev/null
|
2014-12-11 19:55:35 +05:30
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
env:
|
|
|
|
global:
|
2014-12-26 22:33:35 +05:30
|
|
|
secure: "C4wD/BQefKSu9W594iyLp+IBCjlM8kKlmp+nXKXnZGi0L8IkV3m4mmNOb8PExxGMhZ3mlev5DnU4Uoh4oJaUxnkR1FpX4dSEpyzU3VknUzSE2yZOlL+bdCw3o85TGoCcp/+ReJCOw5sncxTskJKHlW1YMa33FznaXwLNoImpjTg="
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/7de0ca12596cd5268f30
|
|
|
|
on_success: always # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
2015-04-05 21:37:10 +05:30
|
|
|
on_start: false # default: false
|