Introduced a smoke testing phase on Travis to run SQLite tests and static analysis first

parent e1ed56c2
...@@ -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
...@@ -170,9 +185,6 @@ jobs: ...@@ -170,9 +185,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
...@@ -319,14 +331,3 @@ jobs: ...@@ -319,14 +331,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