oauth2-server/.travis.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

2012-12-30 21:31:19 +00:00
language: php
2015-04-05 17:07:10 +01:00
sudo: false
cache:
directories:
- vendor
2012-12-30 21:31:19 +00:00
php:
2013-08-08 09:25:17 -04:00
- 5.5
2014-02-11 12:27:35 -05:00
- 5.6
2015-04-05 17:07:10 +01:00
- 7.0
2013-12-19 12:32:09 +00:00
- hhvm
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
2015-04-05 18:26:09 +01:00
before_script:
- cd examples/
- composer install
- cd public/
2015-04-05 18:35:26 +01:00
- php -S localhost:7777 &
2015-04-05 18:28:07 +01:00
- cd ../..
2015-04-05 18:26:09 +01:00
2014-05-03 11:18:09 +01:00
script:
- vendor/bin/codecept build && vendor/bin/codecept run
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
2015-04-05 18:21:57 +01:00
2014-12-11 14:25:35 +00:00
branches:
only:
- master
2015-04-05 18:21:57 +01:00
- v5
2015-04-05 18:19:37 +01:00
2014-12-11 14:25:35 +00:00
env:
global:
2015-04-05 18:19:37 +01:00
secure: "C4wD/BQefKSu9W594iyLp+IBCjlM8kKlmp+nXKXnZGi0L8IkV3m4mmNOb8PExxGMhZ3mlev5DnU4Uoh4oJaUxnkR1FpX4dSEpyzU3VknUzSE2yZOlL+bdCw3o85TGoCcp/+ReJCOw5sncxTskJKHlW1YMa33FznaXwLNoImpjTg="