This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
45 lines (40 loc) · 1.86 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
version: build-{build}
branches:
only:
- master
image: Visual Studio 2017
nuget:
disable_publish_on_pr: true
pull_requests:
do_not_increment_build_number: true
clone_folder: C:/Projects/CRoaring.Net
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:BUILD = "$($Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0"))"
install:
- cmd: git submodule update --init --recursive
build_script:
- cmd: mkdir "C:/Projects/CRoaring.Net/lib/CRoaring/build"
- cmd: cd "C:/Projects/CRoaring.Net/lib/CRoaring/build"
- cmd: cmake -G"Visual Studio 15 2017" -DCMAKE_GENERATOR_PLATFORM=x64 ..
- cmd: cmake --build . --config Release --target roaring
- cmd: cd "C:/Projects/CRoaring.Net/lib/CRoaring/build/src/Release"
- cmd: copy "roaring.dll" "C:/Projects/CRoaring.Net/src/CRoaring.Net/" /Y
- cmd: copy "roaring.dll" "C:/Projects/CRoaring.Net/test/CRoaring.Net.Test/" /Y
- cmd: cd "C:/Projects/CRoaring.Net"
- ps: appveyor-retry dotnet restore CRoaring.Net.sln -v Minimal /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
- ps: dotnet build CRoaring.Net.sln -c Release /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
after_build:
- ps: dotnet pack "src\CRoaring.Net\CRoaring.Net.csproj" -c Release -o "../../artifacts" --no-build /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
- ps: Get-ChildItem artifacts\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
test_script:
- ps: dotnet test C:/Projects/CRoaring.Net/test/CRoaring.Net.Test/CRoaring.Net.Test.csproj -c Release --no-build /p:BuildNumber="$Env:BUILD" /p:IsTagBuild="$Env:APPVEYOR_REPO_TAG"
deploy:
- provider: NuGet
server: https://www.myget.org/F/rogueexception/api/v2/package
api_key:
secure: D+vW2O2LBf/iJb4f+q8fkyIW2VdIYIGxSYLWNrOD4BHlDBZQlJipDbNarWjUr2Kn
symbol_server: https://www.myget.org/F/rogueexception/symbols/api/v2/package
on:
branch: master