From 4caa702a4dc2dd944f1cc158f0391e52c965cd06 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 18 Oct 2018 23:05:01 +0100 Subject: [PATCH] Improved t --- .travis.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 903cff52847f..5d533fba6d76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,20 +6,29 @@ branches: except: - l10n_2.4 -php: - - 7.1 - - 7.2 - before_install: - cp .env.example .env - phpenv config-rm xdebug.ini -install: travis_retry composer install --no-interaction --no-suggest - -script: - - if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then vendor/bin/phpunit; fi - - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi +install: + - travis_retry composer install --no-interaction --no-suggest -after_script: - - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi - - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi +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