forked from k-takata/TClockLight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (47 loc) · 1.34 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
version: "{build}"
shallow_clone: true
environment:
global:
SEVENZIP: 'C:\Program Files\7-Zip\7z.exe'
SETENVCMD: 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd'
VCVARSALLBAT14: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
matrix:
- VC: 10
- VC: 14
ARCH: x86
- VC: 14
ARCH: x64
before_build:
- prepare_custom.bat
build_script:
# If VC is 10, build both x86 and x64.
- >
if %VC%==10
"%SETENVCMD%" /x86 /release &&
make_all.bat &&
"%SETENVCMD%" /x64 /release &&
make_all.bat
# If VC is 14, build only specified architecture.
- if %VC%==14 "%VCVARSALLBAT14%" %ARCH% && make_all.bat
after_build:
# Create packages only if VC is 10 and not a PR build.
- if "%VC%-%APPVEYOR_PULL_REQUEST_NUMBER%"=="10-" set CREATEPKG=yes
# Get today's date in JST.
- >
for /f "usebackq" %%i in (`py -3 -c
"from datetime import datetime, timedelta;
print((datetime.utcnow() + timedelta(hours=9)).strftime('%%Y%%m%%d'))"
`) do set TODAY=%%i
- >
if "%CREATEPKG%"=="yes"
pack kt%TODAY%-%APPVEYOR_REPO_COMMIT% &&
move pkg\tclocklight-*.zip . &&
move pkg\tclocklight-*-custom.7z .
#test_script:
# -
artifacts:
- path: tclocklight-*.zip
name: main package
- path: tclocklight-*-custom.7z
name: custom package
# vim: ts=2 sw=2 et