git repos / PlatformFolders

blame: appveyor.yml

normal view · raw

13360903 sum01 2018-04-19 18:36 1
# Notes:
13360903 sum01 2018-04-19 18:36 2
#   - Minimal appveyor.yml file is an empty file. All sections are optional.
13360903 sum01 2018-04-19 18:36 3
#   - Indent each level of configuration with 2 spaces. Do not use tabs!
13360903 sum01 2018-04-19 18:36 4
#   - All section names are case-sensitive.
13360903 sum01 2018-04-19 18:36 5
#   - Section names should be unique on each level.
13360903 sum01 2018-04-19 18:36 6
13360903 sum01 2018-04-19 18:36 7
#---------------------------------#
13360903 sum01 2018-04-19 18:36 8
#      general configuration      #
13360903 sum01 2018-04-19 18:36 9
#---------------------------------#
13360903 sum01 2018-04-19 18:36 10
13360903 sum01 2018-04-19 18:36 11
# version format
13360903 sum01 2018-04-19 18:36 12
version: '{branch}-{build}'
13360903 sum01 2018-04-19 18:36 13
13360903 sum01 2018-04-19 18:36 14
# branches to build
13360903 sum01 2018-04-19 18:36 15
branches:
13360903 sum01 2018-04-19 18:36 16
  # blacklist
13360903 sum01 2018-04-19 18:36 17
  except:
13360903 sum01 2018-04-19 18:36 18
    - gh-pages
13360903 sum01 2018-04-19 18:36 19
13360903 sum01 2018-04-19 18:36 20
#---------------------------------#
13360903 sum01 2018-04-19 18:36 21
#    environment configuration    #
13360903 sum01 2018-04-19 18:36 22
#---------------------------------#
13360903 sum01 2018-04-19 18:36 23
13360903 sum01 2018-04-19 18:36 24
image:
13360903 sum01 2018-04-19 18:36 25
  - Visual Studio 2015
13360903 sum01 2018-04-19 18:36 26
  - Visual Studio 2017
13360903 sum01 2018-04-19 18:36 27
13360903 sum01 2018-04-19 18:36 28
# build Configuration, i.e. Debug, Release, etc.
13360903 sum01 2018-04-19 18:36 29
configuration:
13360903 sum01 2018-04-19 18:36 30
  - Debug
13360903 sum01 2018-04-19 18:36 31
  - Release
13360903 sum01 2018-04-19 18:36 32
13360903 sum01 2018-04-19 18:36 33
platform:
13360903 sum01 2018-04-19 18:36 34
  - x86
13360903 sum01 2018-04-19 18:36 35
  - x64
13360903 sum01 2018-04-19 18:36 36
13360903 sum01 2018-04-19 18:36 37
# clone directory
13360903 sum01 2018-04-19 18:36 38
clone_folder: c:\projects\platform_folders
13360903 sum01 2018-04-19 18:36 39
13360903 sum01 2018-04-19 18:36 40
# This and clone_depth speed up git cloning
13360903 sum01 2018-04-19 18:36 41
# fetch repository as zip archive
13360903 sum01 2018-04-19 18:36 42
shallow_clone: true
13360903 sum01 2018-04-19 18:36 43
13360903 sum01 2018-04-19 18:36 44
# set clone depth
13360903 sum01 2018-04-19 18:36 45
clone_depth: 1
13360903 sum01 2018-04-19 18:36 46
13360903 sum01 2018-04-19 18:36 47
# Generate the .sln file with Cmake before running MSBuild
13360903 sum01 2018-04-19 18:36 48
before_build:
13360903 sum01 2018-04-19 18:36 49
  - cmd: mkdir c:\projects\platform_folders\build
13360903 sum01 2018-04-19 18:36 50
  - cmd: cd c:\projects\platform_folders\build
13360903 sum01 2018-04-19 18:36 51
  # I know this is ugly, but the matrix didn't work, and newlines seem to not be supported
13360903 sum01 2018-04-19 18:36 52
  - 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 ..))
13360903 sum01 2018-04-19 18:36 53
13360903 sum01 2018-04-19 18:36 54
# Runs MSBuild.exe with logging & some options
13360903 sum01 2018-04-19 18:36 55
build:
13360903 sum01 2018-04-19 18:36 56
  # Allows for faster builds
13360903 sum01 2018-04-19 18:36 57
  parallel: true
13360903 sum01 2018-04-19 18:36 58
  # The solution file is the name of the project() given to Cmake
13360903 sum01 2018-04-19 18:36 59
  project: platform_folders.sln
13360903 sum01 2018-04-19 18:36 60
  # Trust me, you don't want higher than minimal. Even this is spammy
13360903 sum01 2018-04-19 18:36 61
  verbosity: minimal
13360903 sum01 2018-04-19 18:36 62
13360903 sum01 2018-04-19 18:36 63
#---------------------------------#
13360903 sum01 2018-04-19 18:36 64
#       tests configuration       #
13360903 sum01 2018-04-19 18:36 65
#---------------------------------#
13360903 sum01 2018-04-19 18:36 66
13360903 sum01 2018-04-19 18:36 67
# to run your custom scripts instead of automatic tests
13360903 sum01 2018-04-19 18:36 68
# The %CONFIGURATION% and %PLATFORM% variables are set from Appveyor as env-vars
13360903 sum01 2018-04-19 18:36 69
test_script:
13360903 sum01 2018-04-19 18:36 70
  - cmd: MSBuild.exe /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /v:minimal RUN_TESTS.vcxproj
13360903 sum01 2018-04-19 18:36 71
13360903 sum01 2018-04-19 18:36 72
#---------------------------------#
13360903 sum01 2018-04-19 18:36 73
#        global handlers          #
13360903 sum01 2018-04-19 18:36 74
#---------------------------------#
13360903 sum01 2018-04-19 18:36 75
13360903 sum01 2018-04-19 18:36 76
# on build failure dump cmake err log
13360903 sum01 2018-04-19 18:36 77
on_failure:
13360903 sum01 2018-04-19 18:36 78
  - cmd: type c:\projects\platform_folders\build\CMakeFiles\CMakeError.log
1970-01-01 00:00 79