-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
54 lines (54 loc) · 1.62 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
48
49
50
51
52
53
54
version: 1.0.0.{build}
image: Visual Studio 2017
branches:
only:
- master
- /release.*/
- /feature.*/
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}-$(APPVEYOR_REPO_COMMIT)'
before_build:
# Display .NET Core version
- cmd: dotnet --version
- cmd: cat ./src/Qluent/Qluent.csproj
# Display minimal restore text
- cmd: dotnet restore ./src/Qluent/Qluent.csproj --verbosity m
build_script:
# output will be in ./src/bin/debug/netcoreapp1.1/publish
- cmd: dotnet publish ./src/Qluent/Qluent.csproj -c Release
- cmd: dotnet pack ./src/Qluent/Qluent.csproj --no-build -c Release --output ..\..\artifacts
after_build:
cmd: echo "Woot!"
clone_depth: 1
test_script:
# restore packages for our unit tests
- cmd: dotnet restore ./src/Qluent.NetCore.Tests/Qluent.NetCore.Tests.csproj --verbosity m
# run the unit tests (requires changing into the test directory)
- cmd: cd src
- ps: .\scripts\start-azure-storage-emulator.ps1
- cmd: cd Qluent.NetCore.Tests
- cmd: dotnet test
on_finish :
# any cleanup in here
artifacts:
- path: artifacts\Qluent.*.nupkg
name: Nuget Package
deploy:
- provider: NuGet
server: https://www.nuget.org/api/v2/package
api_key:
secure: Tckv766/8wpQ4ykqlneK0+snVYm/o4pjPXd0abDVmFtoaIEU0G1toIj7w9wNq/2l
artifact: Nuget Package
on:
branch: /release.*/