generated from splitio/.net-core-client
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
43 lines (34 loc) · 1.45 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
image:
- Visual Studio 2022
nuget:
account_feed: true
version: 7.10.0
dotnet_csproj:
patch: true
file: '**\*.csproj'
package_version: '{version}'
skip_branch_with_pr: true
configuration: Release
before_build:
- choco install "sonarscanner-msbuild-net46" -y
- nuget install redis-64 -excludeversion -source http://www.nuget.org/api/v2/
- Redis-64\tools\redis-server.exe --service-install
- dotnet restore -s https://www.nuget.org/api/v2/
- cmd: set BUILD_VERSION=%APPVEYOR_BUILD_NUMBER%
build_script:
- sonar-scanner.bat
- dotnet build -c Release
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\tests\Splitio-tests\Splitio-tests.csproj -c Release -f net8.0 --no-build --collect:"XPlat Code Coverage;Format=opencover"
- SonarScanner.MSBuild.exe end /d:sonar.login=%SONAR_LOGIN%
test: on
after_test:
- dotnet test .\tests\Splitio.Integration-tests\Splitio.Integration-tests.csproj -c Release -f net8.0 --no-build
- dotnet test .\tests\Splitio.Integration-events-tests\Splitio.Integration-events-tests.csproj -c Release -f net8.0 --no-build
- dotnet test .\tests\Splitio.Integration-redis-tests\Splitio.Integration-redis-tests.csproj -c Release -f net8.0 --no-build
- dotnet test .\tests\Splitio.TestSupport\Splitio.TestSupport.csproj -c Release -f net8.0 --no-build
- dotnet pack .\src\Splitio --configuration Release
- dotnet pack .\Splitio.Redis --configuration Release
artifacts:
- path: '**\Splitio*.nupkg'
name: splitio-nuget