git repos / blockattack-game

blame: source/misc/embedded_libs/PlatformFolders-4.2.0/appveyor.yml

normal view · raw

c74066db Poul Sander 2022-02-16 12:14 1
# Notes:
c74066db Poul Sander 2022-02-16 12:14 2
#   - Minimal appveyor.yml file is an empty file. All sections are optional.
c74066db Poul Sander 2022-02-16 12:14 3
#   - Indent each level of configuration with 2 spaces. Do not use tabs!
c74066db Poul Sander 2022-02-16 12:14 4
#   - All section names are case-sensitive.
c74066db Poul Sander 2022-02-16 12:14 5
#   - Section names should be unique on each level.
c74066db Poul Sander 2022-02-16 12:14 6
c74066db Poul Sander 2022-02-16 12:14 7
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 8
#      general configuration      #
c74066db Poul Sander 2022-02-16 12:14 9
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 10
c74066db Poul Sander 2022-02-16 12:14 11
# version format
c74066db Poul Sander 2022-02-16 12:14 12
version: '{branch}-{build}'
c74066db Poul Sander 2022-02-16 12:14 13
c74066db Poul Sander 2022-02-16 12:14 14
# branches to build
c74066db Poul Sander 2022-02-16 12:14 15
branches:
c74066db Poul Sander 2022-02-16 12:14 16
  # blacklist
c74066db Poul Sander 2022-02-16 12:14 17
  except:
c74066db Poul Sander 2022-02-16 12:14 18
    - gh-pages
c74066db Poul Sander 2022-02-16 12:14 19
c74066db Poul Sander 2022-02-16 12:14 20
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 21
#    environment configuration    #
c74066db Poul Sander 2022-02-16 12:14 22
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 23
c74066db Poul Sander 2022-02-16 12:14 24
image:
c74066db Poul Sander 2022-02-16 12:14 25
  - Visual Studio 2015
c74066db Poul Sander 2022-02-16 12:14 26
  - Visual Studio 2017
c74066db Poul Sander 2022-02-16 12:14 27
c74066db Poul Sander 2022-02-16 12:14 28
# build Configuration, i.e. Debug, Release, etc.
c74066db Poul Sander 2022-02-16 12:14 29
configuration:
c74066db Poul Sander 2022-02-16 12:14 30
  - Debug
c74066db Poul Sander 2022-02-16 12:14 31
  - Release
c74066db Poul Sander 2022-02-16 12:14 32
c74066db Poul Sander 2022-02-16 12:14 33
platform:
c74066db Poul Sander 2022-02-16 12:14 34
  - x86
c74066db Poul Sander 2022-02-16 12:14 35
  - x64
c74066db Poul Sander 2022-02-16 12:14 36
c74066db Poul Sander 2022-02-16 12:14 37
# clone directory
c74066db Poul Sander 2022-02-16 12:14 38
clone_folder: c:\projects\platform_folders
c74066db Poul Sander 2022-02-16 12:14 39
c74066db Poul Sander 2022-02-16 12:14 40
# This and clone_depth speed up git cloning
c74066db Poul Sander 2022-02-16 12:14 41
# fetch repository as zip archive
c74066db Poul Sander 2022-02-16 12:14 42
shallow_clone: true
c74066db Poul Sander 2022-02-16 12:14 43
c74066db Poul Sander 2022-02-16 12:14 44
# set clone depth
c74066db Poul Sander 2022-02-16 12:14 45
clone_depth: 1
c74066db Poul Sander 2022-02-16 12:14 46
c74066db Poul Sander 2022-02-16 12:14 47
# Generate the .sln file with Cmake before running MSBuild
c74066db Poul Sander 2022-02-16 12:14 48
before_build:
c74066db Poul Sander 2022-02-16 12:14 49
  - cmd: mkdir "%APPVEYOR_BUILD_FOLDER%"\build
c74066db Poul Sander 2022-02-16 12:14 50
  - cmd: cd "%APPVEYOR_BUILD_FOLDER%"\build
c74066db Poul Sander 2022-02-16 12:14 51
  # I know this is ugly, but the matrix didn't work, and newlines seem to not be supported
c74066db Poul Sander 2022-02-16 12:14 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 ..))
c74066db Poul Sander 2022-02-16 12:14 53
c74066db Poul Sander 2022-02-16 12:14 54
# CMake generates the platform as "Win32" instead of "x86" when building 32-bit
c74066db Poul Sander 2022-02-16 12:14 55
# but 64-bit is "x64"
c74066db Poul Sander 2022-02-16 12:14 56
build_script:
c74066db Poul Sander 2022-02-16 12:14 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")
c74066db Poul Sander 2022-02-16 12:14 58
c74066db Poul Sander 2022-02-16 12:14 59
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 60
#       tests configuration       #
c74066db Poul Sander 2022-02-16 12:14 61
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 62
c74066db Poul Sander 2022-02-16 12:14 63
# to run your custom scripts instead of automatic tests
c74066db Poul Sander 2022-02-16 12:14 64
# The %CONFIGURATION% and %PLATFORM% variables are set from Appveyor as env-vars
c74066db Poul Sander 2022-02-16 12:14 65
test_script:
c74066db Poul Sander 2022-02-16 12:14 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)
c74066db Poul Sander 2022-02-16 12:14 67
c74066db Poul Sander 2022-02-16 12:14 68
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 69
#        global handlers          #
c74066db Poul Sander 2022-02-16 12:14 70
#---------------------------------#
c74066db Poul Sander 2022-02-16 12:14 71
c74066db Poul Sander 2022-02-16 12:14 72
# on build failure dump cmake and test err log
c74066db Poul Sander 2022-02-16 12:14 73
on_failure:
c74066db Poul Sander 2022-02-16 12:14 74
  - cmd: IF exist "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log (type "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log)
c74066db Poul Sander 2022-02-16 12:14 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