-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor.yml
72 lines (58 loc) · 1.72 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
-
branches:
only:
- nuget
image: Visual Studio 2019
before_build:
- dotnet restore Ghpr.NUnit/Ghpr.NUnit.sln
- dotnet restore Ghpr.Core/Ghpr.Core.sln
clone_script:
- cmd: >-
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
&& cd %APPVEYOR_BUILD_FOLDER%
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
&& git submodule update --init --recursive
build_script:
- dotnet build Ghpr.NUnit/Ghpr.NUnit.sln /p:Configuration=Release /t:Rebuild
after_build:
- dotnet pack -c Release "Ghpr.NUnit/Ghpr.NUnit.csproj" /p:NuspecFile="Ghpr.NUnit.nuspec"
artifacts:
- path: '**\*.nupkg'
name: nupkg
deploy:
provider: NuGet
server:
api_key:
secure: crLYbWXNgfrzYazkV18cEBRKnl90ee0wjWUfZGIDhkZcZg1ZlGbbsqRdr8JLmU3O
skip_symbols: false
artifact: nupkg
test:
assemblies:
- '**\*TestsExample.dll'
- '**\*TestsExample2.dll'
categories:
only:
- SuccessCategory
-
branches:
except:
- nuget
image: Visual Studio 2019
before_build:
- dotnet restore Ghpr.NUnit/Ghpr.NUnit.sln
- dotnet restore Ghpr.Core/Ghpr.Core.sln
clone_script:
- cmd: >-
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
&& cd %APPVEYOR_BUILD_FOLDER%
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
&& git submodule update --init --recursive
build_script:
- dotnet build Ghpr.NUnit/Ghpr.NUnit.sln /p:Configuration=Release /t:Rebuild
test:
assemblies:
- '**\*TestsExample.dll'
- '**\*TestsExample2.dll'
categories:
only:
- SuccessCategory