]> granicus.if.org Git - graphviz/commitdiff
Appveyor: produce two artifacts
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 25 Aug 2016 18:01:16 +0000 (20:01 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 7 Sep 2016 10:59:12 +0000 (12:59 +0200)
Produce two artifacts: one with all the files that are generated during
the build (PDB files for debug, etc.) and one without. The last one is
most suited as a release.

appveyor.yml

index 6d0908d05c102676a0a032a3d09cd0728cc588b3..6d77e73e5387c8f63296db4a80e7b9d951acaf05 100644 (file)
@@ -58,7 +58,14 @@ build_script:
       cd $env:APPVEYOR_BUILD_FOLDER 
 
       if($env:compiler -eq "msbuild") {
-        msbuild /p:Configuration=Release
+        msbuild /p:Configuration=Release;
+        cp -R Graphviz graphviz-debug-information\Graphviz;
+        cp -R Graphviz graphviz-release\Graphviz;
+        rm graphviz-release\Graphviz\bin\*.pdb;
+        rm graphviz-release\Graphviz\bin\*.lastcodeanalysissucceeded;
+        rm graphviz-release\Graphviz\bin\*.iobj;
+        rm graphviz-release\Graphviz\bin\*.ipdb;
+        rm graphviz-release\Graphviz\bin\*.ilk;
       }
       
       if ($env:compiler -eq "msys2" -Or $env:compiler -eq "cygwin") {
@@ -87,5 +94,7 @@ build_script:
       }
 
 artifacts:
-  - path: Graphviz
-    name: graphviz-windows
\ No newline at end of file
+  - path: graphviz-release
+    name: graphviz-windows
+  - path: graphviz-debug-information
+    name: graphviz-windows-debug-information