Skip to content
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

[FIX] Add dev dependencies to Azure build pipeline #10921

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions infrastructure/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
name: $(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
parameters:
- name: buildMode
displayName: Build mode
type: string
default: default
values:
- default
- dev
trigger:
branches:
include:
Expand Down Expand Up @@ -29,8 +37,14 @@ jobs:
- script: infrastructure/bin/set_php_versions.sh ${{ variables.phpVersion }}
displayName: "PHP version"

# -r option to specify the root directory
- script: infrastructure/bin/deploy.sh -r $(System.DefaultWorkingDirectory)
- script: |
if [ ${{ parameters.buildMode }} = 'dev' ]; then
# -d option to setup the environment with dev dependencies
echo "Building dev..." && infrastructure/bin/deploy.sh -d -r $(System.DefaultWorkingDirectory)
else
# -r option to specify the root directory
echo "Building default..." && infrastructure/bin/deploy.sh -r $(System.DefaultWorkingDirectory)
fi
displayName: Dependencies
env:
# Vite requires build-time variable to have the VITE_ prefix
Expand Down
Loading