Implement Appveyor Windows testing

This commit is contained in:
Foereaper 2016-01-30 12:39:16 +01:00
parent 7b3e65f5c6
commit b3e795bc1b

40
appveyor.yml Normal file
View File

@ -0,0 +1,40 @@
version: 0.21.{build}
# Branches to build
branches:
only:
- develop21
# Specify platform for MySQL check
platform:
- Win32
# By default, AppVeyor only comes with 64bit MySQL, but 32 bit compiler.
# Download standalone MySQL libraries for compilation.
# Probably not the best solution, but it works for now.
install:
- ps: |
if ($env:platform -eq "Win32")
{
Invoke-WebRequest "http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.28-win32.zip" -OutFile mysql-5.6.28-win32.zip
7z e -y mysql-5.6.28-win32.zip mysql-5.6.28-win32/lib -o"C:\Program Files (x86)\MySql\MySQL Server 5.6\lib"
7z e -y mysql-5.6.28-win32.zip mysql-5.6.28-win32/include -o"C:\Program Files (x86)\MySql\MySQL Server 5.6\include"
}
# Clone to the specified folder below, and only clone the latest commit without history.
clone_folder: c:\mzero\server
clone_depth: 1
# Enable parallel builds to speed up the compilation process.
build:
parallel: true
# Initialize submodules.
before_build:
- git submodule update --init --recursive
# Build core.
build_script:
- cd c:\mzero\server
- cmake -DCMAKE_INSTALL_PREFIX="c:\mzero\build\bin" -DCMAKE_SIZEOF_VOID_P=8
- msbuild /m MaNGOS.sln