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:
3a8426ed sum01 2018-04-20 04:09 49
  - cmd: mkdir "%APPVEYOR_BUILD_FOLDER%"\build
3a8426ed sum01 2018-04-20 04:09 50
  - cmd: cd "%APPVEYOR_BUILD_FOLDER%"\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
18ecd1b0 sum01 2018-04-20 03:20 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
3a8426ed sum01 2018-04-20 04:09 54
# CMake generates the platform as "Win32" instead of "x86" when building 32-bit
3a8426ed sum01 2018-04-20 04:09 55
# but 64-bit is "x64"
3a8426ed sum01 2018-04-20 04:09 56
build_script:
3a8426ed sum01 2018-04-20 04:09 57
  - cmd: IF "%PLATFORM%"=="x86" (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\platform_folders.sln /p:Configuration="%CONFIGURATION%" /p:Platform="Win32" /v:minimal /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll") ELSE (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\platform_folders.sln /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /v:minimal /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
13360903 sum01 2018-04-19 18:36 58
13360903 sum01 2018-04-19 18:36 59
#---------------------------------#
13360903 sum01 2018-04-19 18:36 60
#       tests configuration       #
13360903 sum01 2018-04-19 18:36 61
#---------------------------------#
13360903 sum01 2018-04-19 18:36 62
13360903 sum01 2018-04-19 18:36 63
# to run your custom scripts instead of automatic tests
13360903 sum01 2018-04-19 18:36 64
# The %CONFIGURATION% and %PLATFORM% variables are set from Appveyor as env-vars
13360903 sum01 2018-04-19 18:36 65
test_script:
a9fe2cf3 sum01 2018-04-26 22:06 66
  - cmd: IF "%PLATFORM%"=="x86" (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\RUN_TESTS.vcxproj /p:Configuration="%CONFIGURATION%" /p:Platform="Win32" /v:minimal /m) ELSE (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\RUN_TESTS.vcxproj /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /v:minimal /m)
13360903 sum01 2018-04-19 18:36 67
13360903 sum01 2018-04-19 18:36 68
#---------------------------------#
13360903 sum01 2018-04-19 18:36 69
#        global handlers          #
13360903 sum01 2018-04-19 18:36 70
#---------------------------------#
13360903 sum01 2018-04-19 18:36 71
452e64cc sum01 2018-04-26 21:25 72
# on build failure dump cmake and test err log
13360903 sum01 2018-04-19 18:36 73
on_failure:
3a8426ed sum01 2018-04-20 04:09 74
  - cmd: IF exist "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log (type "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log)
452e64cc sum01 2018-04-26 21:25 75
  - cmd: IF exist "%APPVEYOR_BUILD_FOLDER%"\build\Testing\Temporary\LastTest.log (type "%APPVEYOR_BUILD_FOLDER%"\build\Testing\Temporary\LastTest.log)
1970-01-01 00:00 76