forked from rordenlab/dcm2niix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
62 lines (42 loc) · 1.32 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
version: build-{build}
image: Visual Studio 2015
configuration: Release
platform: x64
clone_depth: 1
clone_folder: c:\projects\dcm2niix
init:
- ps: >-
$env:DATE = $(Get-Date -Format d-MMM-yyyy)
$githash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 7)
$gittag = if ($env:APPVEYOR_REPO_TAG -eq $True) {"_$($env:APPVEYOR_REPO_TAG_NAME)"} else {""}
Update-AppveyorBuild -Version "$($env:DATE)_g${githash}${gittag}"
$env:release_version = $(Get-Date -Format d-MMMM-yyyy)
before_build:
- cmd: >-
echo "Running cmake"
mkdir c:\projects\dcm2niix\build
cd c:\projects\dcm2niix\build
cmake -Wno-dev -G "Visual Studio 14 2015 Win64" -DBATCH_VERSION=ON -DUSE_OPENJPEG=ON -DUSE_JPEGLS=true ..\
build:
project: c:\projects\dcm2niix\build\dcm2niix.sln
verbosity: normal
after_build:
- ps: >-
cd c:\projects\dcm2niix
7z a dcm2niix_win.zip c:\projects\dcm2niix\build\bin\* >$null
artifacts:
- path: dcm2niix*.zip
name: dcm2niix
deploy:
- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: version $(release_version) ($(appveyor_repo_tag_name))
description: ""
auth_token:
secure: gCltVLQEWsjSTRlsi8qw7FGP54ujBq60apjXkWTV954b65bOHl95hXMxxkQ734L4
artifact: dcm2niix
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true