Skip to content

Commit

Permalink
Enabled Appveyor Windows CI builds (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbx320 committed Aug 1, 2016
1 parent 57c7d83 commit 54e038b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Client/core/CDirect3DHook9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ IDirect3D9* CDirect3DHook9::API_Direct3DCreate9 ( UINT SDKVersion )
#if D3DX_SDK_VERSION != 42
WriteDebugEvent( "D3DX_SDK_VERSION incorrect " QUOTE_DEFINE( D3DX_SDK_VERSION ) );
#pragma message( "WARNING: Microsoft DirectX SDK (August 2009) includes missing" )
#ifndef MTA_DEBUG
#error "Microsoft DirectX SDK (August 2009) includes missing"
#ifndef CI_BUILD
#ifndef MTA_DEBUG
#error "Microsoft DirectX SDK (August 2009) includes missing"
#endif
#endif
#endif
if ( !D3DXCheckVersion( D3D_SDK_VERSION, D3DX_SDK_VERSION ) )
Expand Down
14 changes: 14 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 1.6-{build}-ci
os: Visual Studio 2015

configuration:
- Release

before_build:
- utils\premake5 vs2013

clone_depth: 1

build:
parallel: true
project: Build/MTASA.sln
15 changes: 10 additions & 5 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ require "compose_files"
require "install_data"
require "install_resources"

CI_BUILD = os.getenv("CI"):lower() == "true"

workspace "MTASA"
configurations {"Debug", "Release", "Nightly"}
platforms { "x86", "x64"}
Expand Down Expand Up @@ -40,11 +42,14 @@ workspace "MTASA"
defines { "MTA_DEBUG" }
targetsuffix "_d"

-- Skip Optimization in CI Builds for build speed
if os.getenv("CONTINUOUS_INTEGRATION") ~= "true" then
filter "configurations:Release or configurations:Nightly"
flags { "Optimize" }
end
if not CI_BUILD then
-- Only optimize outside of CI Builds
filter "configurations:Release or configurations:Nightly"
flags { "Optimize" }
else
filter {}
defines { "CI_BUILD=1" }
end

filter {"system:windows", "configurations:Nightly", "kind:not StaticLib"}
os.mkdir("Build/Symbols")
Expand Down

0 comments on commit 54e038b

Please sign in to comment.