Update appveyor.yml to execute build.cmd and add nodejs as required toolset (#1372)

This commit is contained in:
Nate McMaster
2017-11-03 15:54:23 -07:00
committed by GitHub
parent 2d98a1808c
commit 7bf5516bb2
2 changed files with 20 additions and 12 deletions

View File

@@ -1,19 +1,21 @@
init: init:
- git config --global core.autocrlf true - git config --global core.autocrlf true
install: install:
- ps: Install-Product node 6.9.2 x64 - ps: Install-Product node 6.9.2 x64
# .NET Core SDK binaries branches:
# Download .NET Core 2.0 Preview 3 SDK and add to PATH only:
- ps: $urlCurrent = "https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview3-006857/dotnet-sdk-2.0.0-preview3-006857-win-x64.zip" - master
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk" - release
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null - dev
- ps: $tempFileCurrent = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), [System.IO.Path]::GetRandomFileName()) - /^(.*\/)?ci-.*$/
- ps: (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent) - /^rel\/.*/
- ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR) build_script:
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" - ps: .\run.ps1 default-build
clone_depth: 1 clone_depth: 1
environment: environment:
global: global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1
test: off
deploy: off deploy: off
os: Visual Studio 2017

View File

@@ -1,4 +1,10 @@
{ {
"$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json", "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json",
"channel": "dev" "channel": "dev",
"toolsets": {
"nodejs": {
"required": true,
"minVersion": "6.9"
}
}
} }