+++ /dev/null
-version: 2.45.{build}
-#version: 2.44.0
-clone_depth: 25
-
-image: Visual Studio 2015
-
-environment:
- CTEST_OUTPUT_ON_FAILURE: TRUE
- graphviz_install_dir: C:\Graphviz
- matrix:
- - build_system: cmake
- generator: "Visual Studio 14 2015"
- - build_system: cmake
- generator: "Visual Studio 14 2015 Win64"
- - build_system: msbuild
-
-configuration:
- - Debug
- - Release
-
-install:
- # Retrieve submodules, dependencies are stored there.
- - git submodule update --init
-
-before_build:
-# This file is deleted to reduce noise in the build output. Otherwise several
-# "target does not exist and will be ignored" messages are printed.
-- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
-
-build_script:
- - cd %APPVEYOR_BUILD_FOLDER%
- - set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\windows\dependencies\graphviz-build-utilities
-
- # Build
- - ps: >-
- if($env:build_system -eq "cmake") {
- mkdir build;
- cd build;
- cmake -G "$env:generator" ..;
- cmake --build . --config $env:configuration;
- }
- elseif($env:build_system -eq "msbuild") {
- msbuild /p:Configuration=$env:configuration
- }
-
- # Package
- - ps: >-
- if($env:configuration -eq "Release") {
- if($env:build_system -eq "cmake") {
- cpack
- }
- elseif($env:build_system -eq "msbuild") {
- rm Release\Graphviz\bin\*.lastcodeanalysissucceeded;
- rm Release\Graphviz\bin\*.iobj;
- rm Release\Graphviz\bin\*.ipdb;
- rm Release\Graphviz\bin\*.ilk;
- }
- }
-
- # Test
- - ps: >-
- if($env:build_system -eq "cmake" -and $env:configuration -eq "Release") {
- mv Graphviz-*.exe Graphviz-install.exe;
- # Install using installer and add bin directory to path.
- # Piping the output of the installer to Out-Null, makes the script wait
- # for the .exe to exit, instead continuing to the next command (which
- # will then fail because the install hasn't finished)
- ./Graphviz-install.exe /S /D=$env:graphviz_install_dir | Out-Null;
- $env:Path += ";" + $env:graphviz_install_dir + "\bin"
- dot -c;
- ctest -C $env:configuration;
- }
- elseif($env:build_system -eq "msbuild") {
- # Append build destination to the PATH, configure dot and execute regression tests
- # The following is per https://gitlab.com/graphviz/graphviz/-/merge_requests/1345
- $env:Path = $env:APPVEYOR_BUILD_FOLDER + "\" + $env:configuration + "\Graphviz\bin" + ";" + $env:Path;
- dot -c;
- cd tests\regression_tests;
- ./regression_tests.ps1;
- }
-
-artifacts:
- - path: Release
- name: graphviz-windows
- - path: Debug
- name: graphviz-windows-debug
- - path: build/Graphviz-install.exe
- name: Graphviz-Windows-install