git repos / PlatformFolders

commit d7909cdc

Poul Sander · 2018-04-19 21:15
d7909cdcbb6fc1f300d09d5f86541dfc287d4a95 patch · browse files
parent 1b0a343c9fbf563e07e2b7eaa475beecdc600ab0
parent 133609038c7a86921f92ca12baf86ba625ee3202

Merge pull request #6 from sum01/appveyor

Adds AppVeyor CI support (Windows)

Changed files

A appveyor.yml
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..739fbf2 --- /dev/null +++ b/appveyor.yml
@@ -0,0 +1,78 @@
+# Notes:
+# - Minimal appveyor.yml file is an empty file. All sections are optional.
+# - Indent each level of configuration with 2 spaces. Do not use tabs!
+# - All section names are case-sensitive.
+# - Section names should be unique on each level.
+
+#---------------------------------#
+# general configuration #
+#---------------------------------#
+
+# version format
+version: '{branch}-{build}'
+
+# branches to build
+branches:
+ # blacklist
+ except:
+ - gh-pages
+
+#---------------------------------#
+# environment configuration #
+#---------------------------------#
+
+image:
+ - Visual Studio 2015
+ - Visual Studio 2017
+
+# build Configuration, i.e. Debug, Release, etc.
+configuration:
+ - Debug
+ - Release
+
+platform:
+ - x86
+ - x64
+
+# clone directory
+clone_folder: c:\projects\platform_folders
+
+# This and clone_depth speed up git cloning
+# fetch repository as zip archive
+shallow_clone: true
+
+# set clone depth
+clone_depth: 1
+
+# Generate the .sln file with Cmake before running MSBuild
+before_build:
+ - cmd: mkdir c:\projects\platform_folders\build
+ - cmd: cd c:\projects\platform_folders\build
+ # I know this is ugly, but the matrix didn't work, and newlines seem to not be supported
+ - cmd: IF %APPVEYOR_BUILD_WORKER_IMAGE%=="Visual Studio 2015" (IF %PLATFORM%=="x86" (cmake -G "Visual Studio 14 2015" ..) ELSE (cmake -G "Visual Studio 14 2015 Win64" -T host=x64 ..)) ELSE (IF %PLATFORM%=="x86" (cmake -G "Visual Studio 15 2017" ..) ELSE (cmake -G "Visual Studio 15 2017 Win64" -T host=x64 ..))
+
+# Runs MSBuild.exe with logging & some options
+build:
+ # Allows for faster builds
+ parallel: true
+ # The solution file is the name of the project() given to Cmake
+ project: platform_folders.sln
+ # Trust me, you don't want higher than minimal. Even this is spammy
+ verbosity: minimal
+
+#---------------------------------#
+# tests configuration #
+#---------------------------------#
+
+# to run your custom scripts instead of automatic tests
+# The %CONFIGURATION% and %PLATFORM% variables are set from Appveyor as env-vars
+test_script:
+ - cmd: MSBuild.exe /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /v:minimal RUN_TESTS.vcxproj
+
+#---------------------------------#
+# global handlers #
+#---------------------------------#
+
+# on build failure dump cmake err log
+on_failure:
+ - cmd: type c:\projects\platform_folders\build\CMakeFiles\CMakeError.log