From 79e68019d51fc0891df74bdf452fbf508e215b71 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Mon, 30 Apr 2018 11:02:57 -0700 Subject: [PATCH] Introduced a smoke testing phase on Travis to run SQLite tests and static analysis first --- .travis.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac54fcdf862..32fef1da4ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,21 @@ jobs: - php: nightly include: + + - stage: Smoke Testing + php: 7.2 + env: DB=sqlite COVERAGE=yes + - stage: Smoke Testing + php: 7.2 + env: PHPStan + install: travis_retry composer install --prefer-dist + script: vendor/bin/phpstan analyse + - stage: Smoke Testing + php: 7.2 + env: PHP_CodeSniffer + install: travis_retry composer install --prefer-dist + script: vendor/bin/phpcs + - stage: Test php: 7.2 env: DB=mysql COVERAGE=yes @@ -170,9 +185,6 @@ jobs: - docker before_script: - bash ./tests/travis/install-postgres-11.sh - - stage: Test - php: 7.2 - env: DB=sqlite COVERAGE=yes - stage: Test php: 7.2 env: DB=sqlsrv COVERAGE=yes @@ -319,14 +331,3 @@ jobs: install: - composer config minimum-stability dev - travis_retry composer update --prefer-dist - - - stage: Code Quality - php: 7.2 - env: PHPStan - install: travis_retry composer install --prefer-dist - script: vendor/bin/phpstan analyse - - stage: Code Quality - php: 7.2 - env: PHP_CodeSniffer - install: travis_retry composer install --prefer-dist - script: vendor/bin/phpcs