shlink/.travis.yml

32 lines
836 B
YAML
Raw Normal View History

2016-04-17 20:34:16 +03:00
language: php
branches:
only:
2017-12-27 17:43:59 +03:00
- /.*/
2016-04-17 20:34:16 +03:00
php:
- 7
2016-07-21 19:46:52 +03:00
- 7.1
2017-09-30 13:13:12 +03:00
- 7.2
2016-04-17 20:34:16 +03:00
before_install:
- phpenv config-add data/infra/travis-php/memcached.ini
- phpenv config-add data/infra/travis-php/apcu.ini
2016-04-17 20:34:16 +03:00
before_script:
- composer self-update
- composer install --no-interaction
2017-12-27 17:43:59 +03:00
- if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then composer global require --dev phpstan/phpstan:0.9.*; fi
2016-04-17 20:34:16 +03:00
script:
- mkdir build
- composer check
2017-12-30 23:36:33 +03:00
- if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then ~/.composer/vendor/bin/phpstan analyse module/*/src/ --level=6 -c phpstan.neon; fi
2016-04-17 20:34:16 +03:00
after_script:
- vendor/bin/phpcov merge build --clover build/clover.xml
2016-04-17 20:34:16 +03:00
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
2016-04-17 20:34:16 +03:00
sudo: false