oauth2-server/.travis.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2012-12-30 21:31:19 +00:00
language: php
2015-03-22 23:19:36 +00:00
sudo: false
cache:
directories:
- vendor
2012-12-30 21:31:19 +00:00
php:
- 5.4
2013-08-08 09:25:17 -04:00
- 5.5
2014-02-11 12:27:35 -05:00
- 5.6
2015-03-03 22:00:47 +00:00
- 7.0
2013-12-19 12:32:09 +00:00
- hhvm
2015-03-03 22:00:47 +00:00
matrix:
allow_failures:
- php: 7.0
fast_finish: true
2014-01-16 16:53:44 +00:00
2014-11-08 18:36:59 +00:00
install:
- travis_retry composer install --no-interaction --prefer-source
2014-05-03 11:18:09 +01:00
script:
- mkdir -p build/logs
2014-12-11 14:20:53 +00:00
- phpunit --coverage-text --verbose --coverage-clover=coverage.clover --coverage-html coverage
2014-09-30 23:07:00 +01:00
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
2014-11-08 18:36:59 +00:00
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
2014-12-11 14:20:53 +00:00
- 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 14:25:35 +00:00
branches:
only:
- master
env:
global:
2014-12-26 17:03:35 +00:00
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
on_start: false # default: false