forked from etternagame/etterna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
97 lines (79 loc) · 1.99 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
version: 0.60.0.{build}.{branch}
pull_requests:
do_not_increment_build_number: true
image:
- Visual Studio 2017
configuration:
- Release
platform:
- x64
- Win32
environment:
matrix:
- archi: Win64
- archi:
matrix:
exclude:
- platform: x64
archi:
- platform: Win32
archi: Win64
clone_folder: C:\etterna
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
artifacts:
- path: Etterna *.exe
install:
- cmd: choco install nsis.portable
init:
- set arch=
- if "%archi%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
- echo %generator%
before_build:
- cmd: git submodule update --init --recursive
- cmd: >-
mkdir build && cd build
"C:\Program Files (x86)\cmake\bin\cmake" .. -G %generator%
del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
build:
project: C:\etterna\build\Etterna.sln
verbosity: normal
parallel: true
after_build:
- cmd: >-
"C:\Program Files (x86)\NSIS\makensis.exe" "C:\etterna\stepmania.nsi"
- cmd: >-
rename "C:\etterna\Etterna *.exe" "Etterna *-%appveyor_build_version%.exe"
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: true
deploy:
provider: Environment
name: etterna
on:
branch: master
image: Visual Studio 2017
configuration: Release
for:
# override settings for `master` branch
-
branches:
only:
- master
image:
- Visual Studio 2013
- Visual Studio 2015
- Visual Studio 2017
configuration:
- Release
- RelWithDebInfo