]> granicus.if.org Git - graphviz/commitdiff
Refactor some code to be the same for cmake & msbuild
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 17 Aug 2020 17:40:55 +0000 (19:40 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 24 Aug 2020 05:07:27 +0000 (07:07 +0200)
.gitlab-ci.yml

index e92bf9e7b31cf65e95a19141ff8adf2db3a53a7a..97fbfa5a94ef26d28b8f81e11726fa2cc5ea3594 100644 (file)
@@ -134,19 +134,17 @@ portable-source:
               ./graphviz-install.exe /S /D=$env:graphviz_install_dir | Out-Null;
               mv graphviz-install.exe graphviz-install-$Env:GV_VERSION-$API.exe;
               $env:Path += ";" + $env:graphviz_install_dir + "\bin"
-              dot -c;
               cd ..;
               $Env:INCLUDE += ";C:\Graphviz\include";
               $Env:LIB += ";C:\Graphviz\lib";
-              python3 -m pytest --junitxml=report.xml tests rtest
             }
             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:CI_PROJECT_DIR + "\" + $env:configuration + "\Graphviz\bin" + ";" + $env:Path;
-              dot -c;
-              python3 -m pytest --junitxml=report.xml tests rtest
             }
+        - dot -c
+        - python3 -m pytest --junitxml=report.xml tests rtest
         # Create artifacts to archive
         - $ID = "windows"
         - $VERSION_ID = "10"