-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
70 lines (61 loc) · 2.26 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
version: '0.5.2.{build}'
image: Visual Studio 2022
# https://dotnetcore.gaprogman.com/2017/06/08/continuous-integration-and-appveyor/
branches:
only:
- master
dotnet_csproj:
patch: true
file: 'Linq2Ldap\Linq2Ldap.csproj;Linq2Ldap.Protocols\Linq2Ldap.Protocols.csproj'
package_version: '{version}'
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# install modules
- ps: |
cd e2e-helpers
npm install
before_build:
# Display .NET Core version
- cmd: dotnet --version
# Start LDAP test server
- ps: |
$MyProcess = Start-Process npm.cmd -ArgumentList 'run serve' -PassThru -NoNewWindow
cd ..
# Display minimal restore text
- cmd: dotnet restore ./Linq2Ldap.sln --verbosity m
build_script:
# output will be in ./src/bin/debug/netcoreapp1.1/publish
- cmd: dotnet publish ./Linq2Ldap.sln
test_script:
- ps: dotnet test .\Linq2Ldap.sln --collect "XPlat Code Coverage" --settings .\coverlet.runsettings /p:Exclude="[Linq2Ldap.TestCommon]*"
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
- cmd: bash codecov.sh -f "Linq2Ldap.Tests/TestResults/*/coverage.opencover.xml" -f "Linq2Ldap.Protocols.Tests/TestResults/*/coverage.opencover.xml" -U "-s" -A "-s"
- dotnet pack ./Linq2Ldap.Protocols/ -c Release
- dotnet pack ./Linq2Ldap/ -c Release
artifacts:
- name: linq2ldap.protocols
path: ./Linq2Ldap.Protocols/bin/Release/*.nupkg
type: NuGetPackage
- name: linq2ldap
path: ./Linq2Ldap/bin/Release/*.nupkg
type: NuGetPackage
deploy:
- provider: NuGet
server: https://www.myget.org/F/cdibbs-dev/api/v2/package
api_key:
secure: Mf32sYawJIMVZ3+MzLd+7dl0TgQN2yAwfWS43+h0mhn7RqDS1dPGuO0Vv1HkZKmF
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: linq2ldap.protocols
- provider: NuGet
server: https://www.myget.org/F/cdibbs-dev/api/v2/package
api_key:
secure: Mf32sYawJIMVZ3+MzLd+7dl0TgQN2yAwfWS43+h0mhn7RqDS1dPGuO0Vv1HkZKmF
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: linq2ldap