-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
111 lines (90 loc) · 3.11 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Common configuration for all branches
version: '6.2.{build}'
image: Visual Studio 2019
init:
# Good practice, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
- nuget restore
- dotnet restore
- choco install opencover.portable
- choco install codecov
build:
verbosity: minimal
clone_depth: 1
build_script:
- MSBuild.exe /t:Rebuild
test_script:
- cmd: dotnet restore GeUtilities.Tests\GeUtilities.Tests.csproj --verbosity m
- cmd: dotnet test GeUtilities.Tests\GeUtilities.Tests.csproj
- ps: cd GeUtilities.Tests
- OpenCover.Console.exe -register:"user" -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"xunit -noshadow" -filter:"+[*]* -[GeUtilities.Tests*]*" -oldStyle -output:".\GeUtilities_coverage.xml"
- ps: cd ..
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
on_finish :
# any cleanup in here
deploy: off
# override common configuration for each branch
for:
# override settings for `master` branch
-
branches:
only:
- master
configuration: Release
environment:
codecovtoken:
secure: grVzO2tsoeq7B3FFfRjyhirsmD11tXDcKoXOK6zjpqyOco2BSFbQ0J0T5qTZKsx7
build_script:
- MSBuild.exe /t:Rebuild
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "GeUtilities.Tests/GeUtilities_coverage.xml" -t $env:codecovtoken
- MSBuild.exe /t:Rebuild
- ps: cd GeUtilities.Tests
- OpenCover.Console.exe -register:"user" -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"xunit -noshadow" -filter:"+[*]*" -oldStyle -output:"GeUtilities_coverage.xml"
- ps: cd ..
artifacts:
- path: GeUtilities/bin/Release/Genometric.GeUtilities*.nupkg
name: GeUtilities
deploy:
provider: NuGet
api_key:
secure: R9BDT6tjyjrRf/SNqhrjz3Bju8vUGEZ05qG6UAIF7Zmam2Wk8wjZgDMVyzRvY8Ae
skip_symbols: false
# override settings for `rc` (release candidate) branch
# the only difference with the `master` branch is that this does NOT publish on NuGet.
-
branches:
only:
- rc
configuration: Release
environment:
codecovtoken:
secure: grVzO2tsoeq7B3FFfRjyhirsmD11tXDcKoXOK6zjpqyOco2BSFbQ0J0T5qTZKsx7
build_script:
- MSBuild.exe /t:Rebuild
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "GeUtilities.Tests/GeUtilities_coverage.xml" -t $env:codecovtoken
artifacts:
- path: GeUtilities/bin/Release/Genometric.GeUtilities*.nupkg
name: GeUtilities
# override settings for `dev*` branches
-
branches:
only:
- /dev*/
configuration: Debug
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "GeUtilities.Tests/GeUtilities_coverage.xml"