]> granicus.if.org Git - graphviz/commitdiff
Appveyor: install Ghostscript
authorErwin Janssen <erwinjanssen@outlook.com>
Sat, 11 Jun 2016 17:18:09 +0000 (19:18 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sat, 11 Jun 2016 17:18:09 +0000 (19:18 +0200)
Creating the docs failed because ps2pdf, a part of Ghostscript, wasn't present on the Appveyor build image. This commits installs and sets up Ghostscript on Appveyor.

appveyor.yml

index 55246bed0b723299a187648dc81b6e4e5ab0f6a4..ee2ab994c4479e5cbe85d3b1008ab0644f4e97de 100644 (file)
@@ -7,9 +7,17 @@ environment:
     - compiler: msys2
     - compiler: cygwin
 
+install:
+  - cinst ghostscript
+
 build_script:
+  # Add Ghostscript folder to the path so ps2pdf can be called to create docs.
+  # When executing ps2pdf, 'gs' gets called. On Windows the program is required program is called gswin64c.exe,
+  # so we create a symlink called 'gs' that points to gswin64c.
+  - SET PATH="%PATH%;C:\Program Files\gs\gs9.19\lib;C:\Program Files\gs\gs9.19\bin;"
+  - mklink "C:\Program Files\gs\gs9.19\bin\gs" "C:\Program Files\gs\gs9.19\bin\gswin64c.exe"
   - ps: >-
-      cd $env:APPVEYOR_BUILD_FOLDER    
+      cd $env:APPVEYOR_BUILD_FOLDER 
 
       $BashPath = ""