-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update composer-install step (#3427)
- Loading branch information
Showing
6 changed files
with
100 additions
and
42 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
parameters: | ||
no_dev: false | ||
no_dev: 'false' | ||
|
||
steps: | ||
- task: CacheBeta@0 | ||
- task: Cache@2 | ||
inputs: | ||
key: composer-v2 | composer.lock | ||
key: 'composer-v2 | composer.lock' | ||
restoreKeys: | | ||
composer-v2 | ||
path: $(COMPOSER_HOME)/cache | ||
displayName: Cache composer packages | ||
|
||
- script: composer validate | ||
displayName: Validate composer files | ||
|
||
- ${{ if eq(coalesce(parameters.no_dev, false), true) }}: | ||
- script: 'echo ##vso[task.setvariable variable=EXTRA_PARAM]--no-dev' | ||
- ${{ if eq(coalesce(parameters.no_dev, 'false'), 'false') }}: | ||
- script: echo '##vso[task.setvariable variable=EXTRA_PARAM]' | ||
displayName: Set empty param | ||
- ${{ if ne(coalesce(parameters.no_dev, 'false'), 'false') }}: | ||
- script: echo '##vso[task.setvariable variable=EXTRA_PARAM]--no-dev' | ||
displayName: Set extra param | ||
|
||
- script: composer install --no-interaction --no-suggest --no-progress --ignore-platform-reqs $(EXTRA_PARAM) | ||
- bash: composer install --no-interaction --no-suggest --no-progress --ignore-platform-reqs $EXTRA_PARAM | ||
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,43 @@ | ||
steps: | ||
- script: make dist | ||
- bash: | | ||
VERSION=$(php artisan monica:getversion) | ||
echo "Monica version: $VERSION" | ||
echo "##vso[task.setvariable variable=MONICA_VERSION]$VERSION" | ||
displayName: Set Monica version | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy monica assets | ||
inputs: | ||
sourceFolder: $(System.DefaultWorkingDirectory)/results | ||
contents: monica-assets-*.* | ||
targetFolder: $(System.ArtifactStagingDirectory)/assets | ||
- task: UniversalPackages@0 | ||
displayName: Universal Publish | ||
inputs: | ||
command: publish | ||
publishDirectory: '$(System.ArtifactStagingDirectory)/assets' | ||
vstsFeedPublish: 'monica' | ||
versionOption: custom | ||
versionPublish: $(MONICA_VERSION) | ||
vstsFeedPackagePublish: 'monica-assets' | ||
packagePublishDescription: 'Monica assets' | ||
|
||
- task: CopyFiles@2 | ||
displayName: Copy monica release | ||
inputs: | ||
sourceFolder: $(System.DefaultWorkingDirectory)/results | ||
contents: | | ||
monica-*.* | ||
!monica-assets-*.* | ||
targetFolder: $(System.ArtifactStagingDirectory)/release | ||
- task: UniversalPackages@0 | ||
displayName: Universal Publish | ||
inputs: | ||
command: publish | ||
publishDirectory: '$(System.ArtifactStagingDirectory)/release' | ||
vstsFeedPublish: 'monica' | ||
versionOption: custom | ||
versionPublish: $(MONICA_VERSION) | ||
vstsFeedPackagePublish: 'monica' | ||
packagePublishDescription: 'Monica release' |
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