2014-11-28 09:11:06 +00:00
|
|
|
language: php
|
2018-06-25 21:53:22 +01:00
|
|
|
dist: trusty
|
2017-06-28 22:00:51 +01:00
|
|
|
sudo: false
|
|
|
|
|
2018-06-18 10:29:36 +01:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- l10n_2.4
|
|
|
|
|
2016-08-13 17:04:51 +01:00
|
|
|
before_install:
|
|
|
|
- cp .env.example .env
|
2017-06-28 22:00:51 +01:00
|
|
|
- phpenv config-rm xdebug.ini
|
2016-08-08 17:32:23 +01:00
|
|
|
|
2018-10-18 23:13:12 +01:00
|
|
|
install:
|
|
|
|
- travis_retry composer install --no-interaction --no-suggest
|
2015-01-03 23:11:50 +00:00
|
|
|
|
2018-10-18 23:13:12 +01:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: Security check
|
|
|
|
script:
|
|
|
|
- wget https://get.sensiolabs.org/security-checker.phar
|
|
|
|
- php security-checker.phar security:check ./composer.lock
|
|
|
|
php: 7.1
|
|
|
|
- stage: Unit tests
|
|
|
|
script: vendor/bin/phpunit
|
|
|
|
php: 7.1
|
|
|
|
- stage: Unit tests
|
|
|
|
script: vendor/bin/phpunit
|
|
|
|
php: 7.2
|
|
|
|
- stage: Code coverage
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
|
|
|
|
php: 7.1
|