Commit 9281785a authored by Jeremy Bokobza's avatar Jeremy Bokobza

added install stage in appveyor

parent 6b3fa4fe
...@@ -49,6 +49,21 @@ init: ...@@ -49,6 +49,21 @@ init:
$env:app_output_zip_name = "breeze-$env:win_runtime-$env:configuration.zip" $env:app_output_zip_name = "breeze-$env:win_runtime-$env:configuration.zip"
if ($env:APPVEYOR_REPO_TAG -eq "false") { $env:APPVEYOR_REPO_TAG_NAME = "cd-unstable" } if ($env:APPVEYOR_REPO_TAG -eq "false") { $env:APPVEYOR_REPO_TAG_NAME = "cd-unstable" }
install:
- ps: |
Write-Host "Installing dependencies" -foregroundcolor "magenta"
# Initialize dependencies
git submodule update --init --recursive
Install-Product node 8
npm config set unsafe-perm=true
cd $env:APPVEYOR_BUILD_FOLDER/Breeze.UI
npm install
Write-Host "$env:log_prefix FINISHED restoring dotnet and npm packages" -foregroundcolor "magenta"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
#---------------------------------# #---------------------------------#
# build configuration # # build configuration #
#---------------------------------# #---------------------------------#
...@@ -69,17 +84,6 @@ before_build: ...@@ -69,17 +84,6 @@ before_build:
Write-Host "Commit message: $env:APPVEYOR_REPO_COMMIT_MESSAGE" -foregroundcolor "magenta" Write-Host "Commit message: $env:APPVEYOR_REPO_COMMIT_MESSAGE" -foregroundcolor "magenta"
Write-Host "*--------------------------------*" -foregroundcolor "magenta" Write-Host "*--------------------------------*" -foregroundcolor "magenta"
Write-Host "$env:log_prefix STARTED restoring dotnet and npm packages" -foregroundcolor "magenta"
# Initialize dependencies
git submodule update --init --recursive
cd $env:APPVEYOR_BUILD_FOLDER/Breeze.UI
Install-Product node 8
npm config set unsafe-perm=true
npm install
Write-Host "$env:log_prefix FINISHED restoring dotnet and npm packages" -foregroundcolor "magenta"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
build_script: build_script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment