Skip to content

Commit

Permalink
Introduce travis stages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Oct 16, 2019
1 parent d4a62ee commit 05b9d51
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ php:
- 7.4snapshot
- nightly

env:
- DEPENDENCIES=default
- DEPENDENCIES=lowest
- DEPENDENCIES=highest


matrix:
fast_finish: true
allow_failures:
Expand All @@ -16,10 +22,27 @@ matrix:
install:
- composer install

script:
- vendor/bin/phpunit --coverage-text
- vendor/bin/phpstan analyze

after_success:
- composer require php-coveralls/php-coveralls
- travis_retry vendor/bin/php-coveralls
jobs:
include:
- stage: test
install:
- if [ "$DEPENDENCIES" = "default" ]; then composer install --prefer-dist; fi;
- if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
- if [ "$DEPENDENCIES" = "highest" ]; then composer update --prefer-dist -n; fi;
- composer show
script:
- vendor/bin/phpunit
- stage: analyze
name: phpstan
script:
- vendor/bin/phpstan analyze
- stage: analyze
name: Code style
script:
- vendor/bin/phpcs
- stage: analyze
name: code coverage
script:
- vendor/bin/phpunit --coverage-text
- composer require php-coveralls/php-coveralls
- travis_retry vendor/bin/php-coveralls

0 comments on commit 05b9d51

Please sign in to comment.