-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Run tests against lowest, locked, and highest dependencies #18
Conversation
0bfed15
to
ae9a67e
Compare
- composer validate | ||
stages: | ||
- stan | ||
- test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the order in which we want to run the stages explicit.
- composer update --prefer-dist --prefer-stable --no-interaction | ||
jobs: | ||
include: | ||
- stage: Stan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to bother running the tests if running phpstan
already fails.
script: | ||
- vendor/bin/phpstan analyse -l max -c phpstan.neon src tests | ||
|
||
- &TEST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates an anchor, which we can later reference and extend from.
script: | ||
- vendor/bin/phpunit | ||
|
||
- <<: *TEST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here (and below) we extend from the previously declared anchor.
|
||
- <<: *TEST | ||
|
||
php: 7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We override the PHP version.
jobs: | ||
include: | ||
- stage: Test | ||
php: 7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I mean in #17, the indentation is just off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this makes it more obvious.
Thank you, @Jan0707! |
This PR
stan
andtest
) and runs tests against lowest, locked, and highest versions of dependenciesFollows #9 (comment).
πββοΈ For reference, see https://docs.travis-ci.com/user/build-stages/.