forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
29 lines (23 loc) · 975 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
os: Visual Studio 2015
# NOTE .NET Core SDK preview2 is already installed in the build worker image Visual Studio 2015
# so the `install` section is not required
environment:
CLI_VERSION: 1.0.0-rc4-004771
install:
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $env:CLI_VERSION -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
build_script:
# dotnet info
- ps: dotnet --info
# Run dotnet new
- ps: mkdir "test\test-dotnet-new" -Force | Push-Location
- ps: dotnet new console -lang f#
- ps: dotnet restore
- ps: dotnet build
- ps: dotnet run a b
- ps: Pop-Location
test: off
version: 0.0.1.{build}