Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/.appveyor.yml

raw symbols SCIP
1 # Operating system (build VM template)
2 image:
3 - "Visual Studio 2022"
4 - "Visual Studio 2019"
5
6 platform: x64
7
8 configuration:
9 - Release
10 - Debug
11
12 environment:
13 AV_PROJECTS: 'c:\projects'
14 AV_TIFF_DOWNLOAD: 'c:\projects\download'
15 AV_TIFF_SOURCE: 'c:\projects\libtiff'
16 AV_TIFF_BUILD: 'c:\projects\build'
17 AV_TIFF_INSTALL: 'c:\projects\install'
18
19 matrix:
20 - compiler: vc-cmake
21 - compiler: cygwin-cmake
22 - compiler: mingw-cmake
23
24 matrix:
25 exclude:
26 - image: "Visual Studio 2019"
27 compiler: cygwin-cmake
28 configuration: Release
29 - image: "Visual Studio 2019"
30 compiler: cygwin-cmake
31 configuration: Debug
32 - image: "Visual Studio 2019"
33 compiler: mingw-cmake
34 configuration: Release
35 - image: "Visual Studio 2019"
36 compiler: mingw-cmake
37 configuration: Debug
38
39 cache:
40 #- 'c:\projects\download -> appveyor.yml'
41
42 # Clone directory
43 clone_folder: 'c:\projects\libtiff'
44 clone_depth: 5
45
46 init:
47 - git config --global core.autocrlf input
48
49 before_build:
50 - 'if %compiler%==vc-cmake if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" set "generator=Visual Studio 17 2022"'
51 - 'if %compiler%==vc-cmake if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" set "generator=Visual Studio 16 2019"'
52 - 'if %compiler%==cygwin-cmake set "generator=Unix Makefiles"'
53 - 'if %compiler%==mingw-cmake set "generator=Ninja"'
54 - 'if %Configuration%==Release set "shared=ON"'
55 - 'if %Configuration%==Debug set "shared=OFF"'
56 - 'if %compiler%==vc-cmake if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" set "arch=x64"'
57 - 'if %compiler%==vc-cmake if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" set "arch=Win32"'
58 - 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\cygwin64\bin\cygpath -u %AV_TIFF_SOURCE%`) DO SET AV_TIFF_CYG_SOURCE=%%F'
59 - 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\cygwin64\bin\cygpath -u %AV_TIFF_INSTALL%`) DO SET AV_TIFF_CYG_INSTALL=%%F'
60 - 'if %compiler%==cygwin-cmake C:\cygwin64\setup-x86_64 -q -R C:\cygwin64 -s http://cygwin.mirror.constant.com -l %AV_TIFF_DOWNLOAD%\cygwin -g -P cmake,libjpeg-devel,zlib-devel'
61 - 'if %compiler%==cygwin-cmake set "PATH=C:\cygwin64\bin;%PATH%"'
62 - 'if %compiler%==cygwin-cmake cygpath --version || echo cygpath not found'
63 - 'if %compiler%==cygwin-cmake cmake --version || echo CMake not found'
64 - set "AV_CMAKE_ARGS=-DBUILD_SHARED_LIBS:BOOL=%shared%"
65 - 'if %compiler%==cygwin-cmake set "AV_CMAKE_ARGS=%AV_CMAKE_ARGS% -Dfatal-warnings=ON"'
66 - 'if %compiler%==mingw-cmake set "AV_CMAKE_ARGS=%AV_CMAKE_ARGS% -Dfatal-warnings=ON"'
67 - set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_SOURCE%"
68 - set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_INSTALL%"
69 - 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_CYG_SOURCE%'
70 - 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_CYG_INSTALL%'
71 - 'if %compiler%==mingw-cmake C:\msys64\usr\bin\bash -lc "pacman -Syuu --noconfirm"'
72 - 'if %compiler%==mingw-cmake C:\msys64\usr\bin\bash -lc "pacman -Syuu --noconfirm"'
73 - 'if %compiler%==mingw-cmake C:\msys64\usr\bin\bash -lc "pacman -S --needed --noconfirm mingw-w64-ucrt-x86_64-{toolchain,cmake,ninja,zlib,libjpeg-turbo}"'
74 - 'if %compiler%==mingw-cmake set "PATH=C:\msys64\ucrt64\bin;C:\msys64\usr\bin;%PATH%"'
75 - mkdir %AV_TIFF_BUILD%
76 - cd %AV_TIFF_BUILD%
77 - set
78 - echo Running cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_TIFF_CMAKE_SOURCE%
79 # Disable doc building because of 'Could not import extension sphinxcontrib.applehelp (exception: No module named 'sphinxcontrib.applehelp')'
80 - 'if %compiler%==cygwin-cmake bash -c "cmake -G \"%generator%\" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE% -Dtiff-docs=off"'
81 - 'if %compiler%==mingw-cmake cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
82 - 'if %compiler%==vc-cmake cmake -G "%generator%" -A %arch% -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
83
84 build_script:
85 - cd %AV_TIFF_BUILD%
86 - 'if %compiler%==cygwin-cmake bash -c "cmake --build . --config %configuration% --target install"'
87 - 'if %compiler%==mingw-cmake cmake --build . --config %configuration% --target install'
88 - 'if %compiler%==vc-cmake cmake --build . --config %configuration% --target install'
89
90 # scripts to run after build
91 after_build:
92 - cd %AV_TIFF_BUILD%
93 - '7z a %AV_TIFF_SOURCE%\libtiff-build.zip * -tzip'
94 - cd %AV_TIFF_INSTALL%
95 - '7z a %AV_TIFF_SOURCE%\libtiff.zip * -tzip'
96
97 before_test:
98 - cd %AV_TIFF_BUILD%
99 - 'if %compiler%==cygwin-cmake bash -c "ctest -V -C %configuration%"'
100 - 'if %compiler%==mingw-cmake ctest -V -C %configuration%'
101 - 'if %compiler%==vc-cmake ctest -V -C %configuration%'
102
103 # AppVeyor don't yet have a configurable retention policy, so this will
104 # eventually use up all the storage allowance.
105 #artifacts:
106 # - path: libtiff.zip
107 # name: libtiff.zip
108 # - path: libtiff-build.zip
109 # name: libtiff-build.zip