-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathappveyor.yml
47 lines (35 loc) · 1.46 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: Visual Studio 2017
configuration:
- Release
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
GherkinVersion: "5.0.0"
GherkinPackageVersion: "$(GherkinVersion)-ci$(APPVEYOR_BUILD_NUMBER)"
CLI_VERSION: 2.1.105
nuget:
project_feed: true
disable_publish_on_pr: true
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
#before_build:
#- appveyor-retry dotnet restore
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/master/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"
- cmd: dotnet --info
build_script:
- dotnet build -c %CONFIGURATION% Gherkin --version-suffix %LABEL%
- dotnet build -c %CONFIGURATION% Gherkin.CLI --version-suffix %LABEL%
- dotnet build -c %CONFIGURATION% Gherkin.TokensGenerator --version-suffix %LABEL%
- dotnet build -c %CONFIGURATION% Gherkin.Specs --version-suffix %LABEL%
after_build:
- dotnet pack -c %CONFIGURATION% Gherkin -o artifacts /p:PackageVersion=%GherkinPackageVersion%
test_script:
- cd Gherkin.Specs
- dotnet xunit -nobuild -c %CONFIGURATION% -fxversion 2.0.7
artifacts:
- path: '**\Gherkin*.nupkg'