forked from GitTools/GitTools.Testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
32 lines (24 loc) · 1.06 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
image:
- Visual Studio 2017
install:
- choco install gitversion.portable -pre -y
configuration:
- Release
assembly_info:
patch: false
before_build:
- dotnet restore src\GitTools.Testing.sln
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
project: src\GitTools.Testing.sln
after_build:
- cmd: dotnet pack src\GitTools.Testing\GitTools.Testing.csproj /p:PackageVersion="%GitVersion_NuGetVersion%" /p:NoBuild=true /p:PackageOutputPath=%APPVEYOR_BUILD_FOLDER%
- cmd: appveyor PushArtifact "GitTools.Testing.%GitVersion_NuGetVersion%.nupkg"
# Setting this off until the auto-detection for dotnet test tooling in AppVeyor
# is integrated. https://github.com/appveyor/ci/issues/1404
# The test_script is used as a workaround to fix this.
test: off
test_script:
- cmd: dotnet test src\GitTools.Testing.Tests\GitTools.Testing.Tests.csproj --configuration %Configuration% --no-build
cache:
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified