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
|
|
|
|
2015-04-05 22:56:09 +05:30
|
|
|
before_script:
|
|
|
|
- cd examples/
|
|
|
|
- composer install
|
|
|
|
- cd public/
|
2015-04-05 23:05:26 +05:30
|
|
|
- php -S localhost:7777 &
|
2015-04-05 22:58:07 +05:30
|
|
|
- cd ../..
|
2015-04-05 22:56:09 +05:30
|
|
|
|
2014-05-03 15:48:09 +05:30
|
|
|
script:
|
2015-04-05 22:49:37 +05:30
|
|
|
- vendor/bin/codecept run
|
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
|
2015-04-05 22:51:57 +05:30
|
|
|
|
2014-12-11 19:55:35 +05:30
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-04-05 22:51:57 +05:30
|
|
|
- v5
|
2015-04-05 22:49:37 +05:30
|
|
|
|
2014-12-11 19:55:35 +05:30
|
|
|
env:
|
|
|
|
global:
|
2015-04-05 22:49:37 +05:30
|
|
|
secure: "C4wD/BQefKSu9W594iyLp+IBCjlM8kKlmp+nXKXnZGi0L8IkV3m4mmNOb8PExxGMhZ3mlev5DnU4Uoh4oJaUxnkR1FpX4dSEpyzU3VknUzSE2yZOlL+bdCw3o85TGoCcp/+ReJCOw5sncxTskJKHlW1YMa33FznaXwLNoImpjTg="
|