-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
68 lines (60 loc) · 1.96 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
skip_commits:
files:
- .github/**/*
- 'azure-pipelines.yml'
- 'CITATION.cff'
- '**/*.md'
- '**/*.html'
- '**/*.htm'
- '**/*.tex'
# version format
version: "{build}"
image: Visual Studio 2019
platform:
- x64
configuration: release
clone_folder: C:\projects\PETPVC
environment:
ITKSRC: C:\projects\deps\ITK
ITKINSTALL: C:\projects\deps\ITK-5.4.0
ITKBUILD: C:\projects\deps\ITK-BUILD
install:
- IF NOT EXIST C:\projects\deps mkdir C:\projects\deps
- cd C:\projects\deps
- set ITK_URL="https://github.com/InsightSoftwareConsortium/ITK/archive/v5.4.0.zip"
- IF NOT EXIST C:\projects\deps\ITK-5.4.0.zip appveyor DownloadFile %ITK_URL% -FileName ITK-5.4.0.zip
- IF NOT EXIST %ITKINSTALL% ( 7z x ITK-5.4.0.zip -oC:\projects\deps\ITK > nul &&
mkdir %ITKBUILD% &&
cd %ITKBUILD% &&
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=%ITKINSTALL% -DModule_ITKReview=ON ..\ITK\ITK-5.4.0 &&
msbuild INSTALL.vcxproj
)
cache:
- C:\projects\deps\ITK-5.4.0.zip
- C:\projects\deps\ITK-5.4.0 -> appveyor.yml
build_script:
- cd C:\projects\PETPVC
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%ITKINSTALL% -DCMAKE_INSTALL_PATH=. .
- msbuild INSTALL.vcxproj
- msbuild RUN_TESTS.vcxproj
- msbuild PACKAGE.vcxproj
- ps: Get-ChildItem .\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
deploy:
- provider: GitHub
auth_token:
secure: rAhVQ15Ngn/wGthOvIkrQqrMi9jEjFbKwSUan4OxblikIglipPmQTnzZUViYpbmw
release: PETPVC-$(appveyor_build_version)
description: 'Binary release - $(appveyor_build_version)'
artifact: /.*\.exe/
draft: true
on:
appveyor_repo_tag: true