mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
35 lines
582 B
YAML
35 lines
582 B
YAML
language: php
|
|
|
|
dist: trusty
|
|
sudo: false
|
|
|
|
cache:
|
|
directories:
|
|
- vendor
|
|
|
|
env:
|
|
- DEPENDENCIES=""
|
|
- DEPENDENCIES="--prefer-lowest --prefer-stable"
|
|
|
|
php:
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
- 7.3
|
|
|
|
install:
|
|
- composer update --no-interaction --prefer-dist $DEPENDENCIES
|
|
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover=coverage.clover
|
|
- vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
|
|
|
|
after_script:
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- 8.0.0
|