-
Notifications
You must be signed in to change notification settings - Fork 61
/
appveyor.yml
75 lines (75 loc) · 3.75 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
71
72
73
74
75
branches:
only:
- master
- /^v[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/
version: 0.0.{build}
os:
- Visual Studio 2013
shallow_clone: false
skip_tags: true
clone_folder: c:\dcmqi
configuration:
- Release
platform:
- x64
environment:
PYTHON_DIR: "C:\\Python27-x64"
PATH: "%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"
GITHUB_TOKEN:
secure: mnRPU2KJBMkkUa4fo4ebLpsEG/gYpcAy4/X2ihGiwZiPGpkyvF1ItFFRSlUGubvf
APPVEYOR_API_TOKEN:
secure: 3+wBc5SxNqx3XjsY3EZ7afvQbLAWWcw30SPGK7q+QPA=
before_build:
# Install tools required to run DCMQI "doc" tests
- npm install [email protected] -g
# Display infos
- cmake --version
# Downloads
- ps: |
$client = new-object System.Net.WebClient;
$client.DownloadFile("https://github.com/QIICR/dicom3tools/releases/download/20200512090031/dicom3tools_winexe_1.00.snapshot.20200512090031.zip", "C:\dicom3tools.zip")
$client.DownloadFile("https://github.com/qiicr/zlib-dcmqi/releases/download/zlib-dcmqi-1.2.3-VS12-Win64-Release-static/zlib-dcmqi.zip", "C:\zlib-dcmqi.zip")
$client.DownloadFile("https://github.com/QIICR/dcmtk-dcmqi/releases/download/DCMTK-dcmqi-3.6.5_20200113-VS12-Win64-Release-v0.0.29-static/DCMTK-dcmqi.zip", "C:\DCMTK-dcmqi.zip")
$client.DownloadFile("https://github.com/QIICR/ITK-dcmqi/releases/download/ITK-dcmqi-VS12-Win64-Release-v0.0.30-static/ITK-dcmqi.zip", "C:\ITK-dcmqi.zip")
# Extract
- |
7z x C:\dicom3tools.zip -oC:\dicom3tools
7z x C:\zlib-dcmqi.zip -oC:\zlib-install
7z x C:\DCMTK-dcmqi.zip -oC:\DCMTK-install
7z x C:\ITK-dcmqi.zip -oC:\ITK-install
# Update PATH
- set PATH=%PATH%;C:\dicom3tools
# Download SlicerExecutionModel source
- |
cd c:\
git clone https://github.com/fedorov/SlicerExecutionModel.git -b dcmqi-311eff SlicerExecutionModel
# Download SlicerExecutionModel binaries
- ps: |
$client = new-object System.Net.WebClient;
$client.DownloadFile("https://github.com/fedorov/SlicerExecutionModel/releases/download/SlicerExecutionModel-dcmqi-VS12-Win64-Release-v0.0.5/SlicerExecutionModel-dcmqi.zip", "C:\SlicerExecutionModel-dcmqi.zip")
- 7z x C:\SlicerExecutionModel-dcmqi.zip -oC:\SlicerExecutionModel\SlicerExecutionModel-build
# Install package required to automatically create or update GitHub releases
- pip install -U "scikit-ci-addons>=0.18.0"
- pip install jsondiff
# Configure project
- |
mkdir c:\dcmqi\dcmqi-build
cd c:\dcmqi\dcmqi-build
cmake -G "Visual Studio 12 2013 Win64" -DITK_DIR:PATH=C:\ITK-install\lib\cmake\ITK-4.10 -DSlicerExecutionModel_DIR:PATH=C:\SlicerExecutionModel\SlicerExecutionModel-build -DDCMTK_DIR:PATH=C:\DCMTK-install\cmake -DZLIB_ROOT:PATH=c:\zlib-install -DZLIB_INCLUDE_DIR:PATH=c:\zlib-install\include -DZLIB_LIBRARY:FILEPATH=c:\zlib-install\lib\zlib.lib -DBUILD_SHARED_LIBS:BOOL=OFF c:\dcmqi
dir
build_script:
- cmd: cmake --build . --config Release -- /m
- cmd: |
cd c:\dcmqi\dcmqi-build\dcmqi-build
cmake --build . --config Release --target PACKAGE -- /m
after_build:
- cmd: c:\Users\appveyor\AppData\Roaming\npm\ajv help
- cmd: c:\Users\appveyor\AppData\Roaming\npm\ajv.cmd help
- cmd: cd c:\dcmqi\dcmqi-build\dcmqi-build && set PATH=%PATH%;c:\DCMTK-install\bin;c:\ITK-install\bin;c:\zlib-install\lib;c:\Users\appveyor\AppData\Roaming\npm && ctest -j4 -VV -C Release -D ExperimentalTest --no-compress-output
- ps: |
ci_addons publish_github_release qiicr/dcmqi `
--exit-success-if-missing-token `
--release-packages "c:\dcmqi\dcmqi-build\dcmqi-build\dcmqi-*-win64.zip" `
--prerelease-packages "c:\dcmqi\dcmqi-build\dcmqi-build\dcmqi-*-win64-*.zip" `
--prerelease-packages-clear-pattern "dcmqi-*-win64-*" `
--prerelease-packages-keep-pattern "*<COMMIT_DATE>-<COMMIT_SHORT_SHA>*"