Unverified Commit 51635fee authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #3122 from morozov/travis-fail-fast

Introduced a smoke testing phase on Travis to run SQLite tests and CS checks first
parents 3ad6b798 79e68019
...@@ -45,6 +45,21 @@ jobs: ...@@ -45,6 +45,21 @@ jobs:
- php: nightly - php: nightly
include: 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 - stage: Test
php: 7.2 php: 7.2
env: DB=mysql COVERAGE=yes env: DB=mysql COVERAGE=yes
...@@ -172,9 +187,6 @@ jobs: ...@@ -172,9 +187,6 @@ jobs:
- docker - docker
before_script: before_script:
- bash ./tests/travis/install-postgres-11.sh - bash ./tests/travis/install-postgres-11.sh
- stage: Test
php: 7.2
env: DB=sqlite COVERAGE=yes
- stage: Test - stage: Test
php: 7.2 php: 7.2
env: DB=sqlsrv COVERAGE=yes env: DB=sqlsrv COVERAGE=yes
...@@ -325,14 +337,3 @@ jobs: ...@@ -325,14 +337,3 @@ jobs:
install: install:
- composer config minimum-stability dev - composer config minimum-stability dev
- travis_retry composer update --prefer-dist - 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment