Debian Codegraph @

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

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