This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
58 lines (49 loc) · 2.28 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
nuget:
account_feed: true
version: 6.2.4-rc{build}
dotnet_csproj:
patch: true
file: '**\*.csproj'
package_version: '{version}'
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 --configuration Release
- SonarScanner.MSBuild.exe end /d:sonar.login=%SONAR_LOGIN%
after_build:
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core-tests\Splitio-net-core-tests.csproj --configuration Release --framework netcoreapp2.2
- Redis-64\tools\redis-server.exe --service-stop
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core-tests\Splitio-net-core-tests.csproj --configuration Release --framework netcoreapp1.0
- Redis-64\tools\redis-server.exe --service-stop
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core-tests\Splitio-net-core-tests.csproj --configuration Release --framework net472
- Redis-64\tools\redis-server.exe --service-stop
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core-tests\Splitio-net-core-tests.csproj --configuration Release --framework net462
- Redis-64\tools\redis-server.exe --service-stop
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core-tests\Splitio-net-core-tests.csproj --configuration Release --framework net45
- Redis-64\tools\redis-server.exe --service-stop
- Redis-64\tools\redis-server.exe --service-start
- dotnet test .\Splitio-net-core.Integration-tests\Splitio-net-core.Integration-tests.csproj --configuration Release --framework netcoreapp2.2
- dotnet test .\Splitio.TestSupport\Splitio-net-core.TestSupport.csproj --configuration Release
- dotnet pack .\src\Splitio-net-core --configuration Release
- dotnet pack .\Splitio-net-core.Redis --configuration Release
- dotnet pack .\Splitio.TestSupport --configuration Release
test: off
artifacts:
- path: '**\Splitio*.nupkg'
name: splitio-nuget
deploy:
- provider: Environment
name: NugetNetCorePublish
on:
branch: master