-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've 1. Pinned PHP/Composer/Magento versions more correctly for future-compatability. 2. Now run integrations tests against tagged releases as opposed to directly against branches in Github. 3. Cached composer across the pipeline, improving test runs by ~2minutes (down from 5). 4. Matrixed across composer versions as well, because Magento versions didn't use to support composer 2. 5. Moved down from `ubuntu-latest` to `ubuntu-18.04` because of Magento 2.3's PHP constraint. We'll revert once it's EoL. BREAKING CHANGE: we no longer test against php7.2. Please use it at your own risk.
- Loading branch information
1 parent
f3c9e67
commit 4edc8e5
Showing
6 changed files
with
88 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
parameters: | ||
- name: key # name of the parameter; required | ||
type: string # data type of the parameter; required | ||
default: "" | ||
|
||
steps: | ||
- task: Cache@2 | ||
inputs: | ||
${{ if eq(parameters['key'], '') }}: | ||
key: 'composer | "$(Agent.OS)" | composer.lock' | ||
${{ if ne(parameters['key'], '') }}: | ||
key: 'composer | "$(Agent.OS)" | ${{ parameters.key }} | composer.lock' | ||
path: $(COMPOSER_CACHE_DIR) | ||
displayName: Cache composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
steps: | ||
- script: composer install --no-interaction --prefer-dist | ||
displayName: 'composer install' | ||
steps: | ||
- script: composer install --no-interaction --prefer-dist | ||
displayName: 'composer install' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
parameters: | ||
- name: composerVersion # name of the parameter; required | ||
type: string # data type of the parameter; required | ||
default: 2 | ||
steps: | ||
- script: sudo composer self-update --${{ parameters.composerVersion }} | ||
displayName: Pin to Composer Version ${{ parameters.composerVersion }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.