diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..21a04ef --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,101 @@ +#---------------------------------# +# general configuration # +#---------------------------------# + +# version format +version: 1.0.{build}-{branch} + +# branches to build +branches: + # whitelist + only: + - develop + +# Skipping commits affecting specific files (GitHub only). More details here: /docs/appveyor-yml +#skip_commits: + files: + - doc/* +# - '**/*.html' + +# Maximum number of concurrent jobs for the project +max_jobs: 1 + +# scripts that are called at very beginning, before repo cloning +init: + - cmd: cmake --version + - cmd: msbuild /version + +#---------------------------------# +# environment configuration # +#---------------------------------# + +# Build worker image (VM template) +image: Visual Studio 2015 + +# scripts that are called at very beginning, before repo cloning +init: + - git config --global core.autocrlf input + +# clone directory +clone_folder: c:\projects\safe_numerics + +# fetch repository as zip archive +shallow_clone: true # default is "false" + +# set clone depth +# clone_depth: 5 # clone entire repository history if not defined + +# environment variables +environment: + MSVC_DEFAULT_OPTIONS: ON + BOOST_ROOT: C:\Libraries\boost_1_59_0 + BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib32-msvc-14.0 + +#---------------------------------# +# build configuration # +#---------------------------------# + +# build platform, i.e. x86, x64, Any CPU. This setting is optional. +platform: Any CPU + +# to add several configurations to build matrix: +configuration: + - Debug + - Release + +# scripts to run before build +before_build: + - cmd: cd C:\projects\safe_numerics + - cmd: md build + - cmd: cd build + # We generate project files for Visual Studio 14 because the boost binaries installed on the test server are for Visual Studio 14. + - cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 + - cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64 + - cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBoost_USE_STATIC_LIBS="ON" .. + +build: + project: safe_numerics.sln # path to Visual Studio solution or project + +# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services) +before_package: + +# scripts to run after build +after_build: + +# to run your custom scripts instead of automatic MSBuild +build_script: + +# to disable automatic builds +#build: off + +#---------------------------------# +# tests configuration # +#---------------------------------# + +# to run your custom scripts instead of automatic tests +test_script: + - cmd: ctest --build-config %configuration% --output-on-failure + +# to disable automatic tests +#test: off +