Skip to content

Commit

Permalink
qa: test against each major version of composer/semver
Browse files Browse the repository at this point in the history
We need to validate that we work against each version of composer/semver

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed May 27, 2020
1 parent 86b4280 commit 64bd869
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,26 @@ matrix:
- php: 7.3
env:
- COMPAT_VERSION=7.3
- RUN_TESTS=1
- RUN_TESTS="phpunit/phpunit:^8.5 composer/semver:^1.0"
- php: 7.3
env:
- COMPAT_VERSION=7.3
- RUN_TESTS="phpunit/phpunit:^8.5 composer/semver:^2.0"
- php: 7.3
env:
- COMPAT_VERSION=7.3
- RUN_TESTS="phpunit/phpunit:^8.5 composer/semver:^3.0"
- php: 7.4
env:
- COMPAT_VERSION=7.4

install:
- composer update $COMPOSER_ARGS
- if [[ $RUN_TESTS == '1' ]]; then composer require --dev "phpunit/phpunit:^8.5" ; fi
- if [[ $RUN_TESTS != '' ]]; then composer require $RUN_TESTS ; fi
- stty cols 120 && composer show

script:
- if [[ $RUN_TESTS == '1' ]]; then composer test ; fi
- if [[ $RUN_TESTS != '' ]]; then composer test ; fi
- composer cs-check -- -p src --standard=PHPCompatibility --runtime-set testVersion $COMPAT_VERSION

notifications:
Expand Down

0 comments on commit 64bd869

Please sign in to comment.