shlink/.travis.yml

32 lines
836 B
YAML
Raw Normal View History

2016-04-17 12:34:16 -05:00
language: php
branches:
only:
2017-12-27 08:43:59 -06:00
- /.*/
2016-04-17 12:34:16 -05:00
php:
- 7
2016-07-21 11:46:52 -05:00
- 7.1
2017-09-30 05:13:12 -05:00
- 7.2
2016-04-17 12:34:16 -05:00
before_install:
- phpenv config-add data/infra/travis-php/memcached.ini
- phpenv config-add data/infra/travis-php/apcu.ini
2016-04-17 12:34:16 -05:00
before_script:
- composer self-update
- composer install --no-interaction
2017-12-27 08:43:59 -06: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 12:34:16 -05:00
script:
- mkdir build
- composer check
2017-12-30 14:36:33 -06: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 12:34:16 -05:00
after_script:
- vendor/bin/phpcov merge build --clover build/clover.xml
2016-04-17 12:34:16 -05:00
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
2016-04-17 12:34:16 -05:00
sudo: false