This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathappveyor.yml
71 lines (57 loc) · 1.85 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
# Copyright (C) 2011-2018 Project SkyFire <http://www.projectskyfire.org/>
#
version: '2.0.{build}-{branch}'
# Build worker image (VM template)
image:
- Visual Studio 2017
skip_tags: true
clone_depth: 1
pull_requests:
do_not_increment_build_number: true
services:
- mysql
environment:
matrix:
- SF_VERSION: TBC
VS_VER: Visual Studio 15 2017 Win64
#- SF_VERSION: Cata
# VS_VER: Visual Studio 15 2017 Win64
#- SF_VERSION: Panda
# VS_VER: Visual Studio 15 2017 Win64
#- SF_VERSION: Legion
# VS_VER: Visual Studio 15 2017 Win64
# build Configuration, i.e. Debug, Release, etc.
configuration:
- Debug
- Release
# scripts that are called, before repo cloning
init:
- cmd: git config --global core.autocrlf input
- cmd: cmake --version
- cmd: msbuild /version
#scripts that run after cloning repository
install:
- set PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 5.6\bin
- set PATH=%PATH%;C:\Program Files (x86)\MySQL\MySQL Server 5.6\bin
# scripts to run before build
before_build:
- cmd: echo %VS_VER%
- cmd: echo %Configuration%
# Build core.
build_script:
- cmd: mkdir build
- cmd: cd build
- cmd: cmake ../ -G "%VS_VER%" -DBUILD_WITH_WARNINGS=0 -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TOOLS=0 -DBUILD_SCRIPTS=1 -DSF_VERSION=%SF_VERSION%
- cmd: msbuild /m SkyFireONE.sln
# enable MSBuild parallel builds
- max_jobs: 2
- parallel: true
# MSBuild verbosity level (quiet|minimal|normal|detailed)
- verbosity: normal
# Notifications
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/k3rn31p4nic/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/k3rn31p4nic/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL