-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
101 lines (87 loc) · 3.05 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '{branch}-{build}'
skip_tags: true
skip_commits:
files:
- .github/workflows/*
- README.md
environment:
CL: /MP
iric_access_token:
secure: lBwvZB6VY32cT2cSrTTjA6ZTYuzduDGVkJNlzl/fHSrNN03xDjRS5Vs2Iijg5g03
kskinoue0612_access_token:
secure: todo
scharlton2_access_token:
secure: xawcr/f1HW+2ad233K03DxKOOgTL6iP7uxITt/PdJdrd5hrGbYrUM1EmG5pItnle
image: Visual Studio 2013
# called before clone
init:
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set GENERATOR="Visual Studio 15 2017 Win64" && set SGEN=vs2017-x64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set GENERATOR="Visual Studio 14 2015 Win64" && set SGEN=vs2015-x64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set GENERATOR="Visual Studio 12 2013 Win64" && set SGEN=vs2013-x64)
- echo %GENERATOR%
- echo %Configuration%
- if "%Configuration%"=="Debug" (set config=debug)
- if "%Configuration%"=="Release" (set config=release)
- set BUILD_TOOLS=OFF
- FOR /F "tokens=3 delims= " %%i in ('echo %APPVEYOR_BUILD_WORKER_IMAGE%') do set YEAR=%%i
- echo %YEAR%
clone_folder: C:\iricdev
configuration:
- Debug
- Release
# Note mkdir is from Git (C:\Program Files\Git\usr\bin\mkdir.exe)
# It might give unexpected results (use md instead)
before_build:
- echo "*** Install newer cmake ***"
- echo %PATH%
- ps: Get-Command cmake
- ps: .\install_cmake.ps1
- echo %PATH%
- ps: Get-Command cmake
- call C:\Qt\5.5\msvc2013_64\bin\qtenv2.bat
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
- cd "%APPVEYOR_BUILD_FOLDER%"
- copy appveyor_programs.prop programs.prop
- call versions.cmd
- call cleanup-cache.cmd
- set BUILD_TOOLS=OFF
- curl -L -O https://raw.githubusercontent.com/MestreLion/git-tools/cd87904e0b85d74b1d05f6acbd10553a0ceaceb0/git-restore-mtime
- python git-restore-mtime
build_script:
- msbuild /nologo /verbosity:minimal /target:appveyor-%config% iricdev.proj
- msbuild /nologo /verbosity:minimal /target:vtk-build-%config% iricdev.proj
after_build:
- if not exist logs (md logs)
- if exist *.log (copy *.log logs\.)
- cd lib\install
- 7z a ..\..\install-%Configuration%.zip .
artifacts:
- path: install-$(Configuration).zip
- path: logs
- path: paths.pri
- path: dirExt.prop
cache:
- lib\install
- logs
before_deploy:
- ps: $env:release_title="iricdev $((Get-Date).ToUniversalTime().ToString('o'))"
- ps: |
switch ($env:APPVEYOR_ACCOUNT_NAME)
{
"i-RIC" { $env:token = $env:iric_access_token }
"kskinoue0612" { $env:token = $env:kskinoue0612_access_token }
"scharlton2" { $env:token = $env:scharlton2_access_token }
}
deploy:
- provider: GitHub
tag: LATEST
release: $(release_title)
auth_token: $(token)
artifact: install-$(Configuration).zip
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: false # deploy on tag push only