]> granicus.if.org Git - graphviz/commitdiff
Move common commands from macOS jobs to macos_build_definition
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 26 Oct 2020 09:49:21 +0000 (10:49 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 28 Oct 2020 05:19:02 +0000 (06:19 +0100)
.gitlab-ci.yml

index 6f477613c1d60fb47ec8999aa36178a96e4ea63e..81f2cbc2a9f2c3e47f389c26b4b409b936150cec 100644 (file)
@@ -67,6 +67,14 @@ portable-source:
 .build_template: &macos_build_definition
     stage: build
     script:
+        - brew update
+        - brew install autogen || brew upgrade autogen
+        - brew install cmake || brew upgrade cmake
+        - brew install bison || brew upgrade bison
+        - brew install pango || brew upgrade pango
+        - export PATH="/usr/local/opt/bison/bin:$PATH"
+        - python3 gen_version.py > VERSION # FIXME: remove when building from portable source
+        - echo experimental > COLLECTION
         - logfile=`mktemp`
         - ci/build.sh 2>&1 | tee $logfile
         - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
@@ -251,14 +259,7 @@ ubuntu20-04-build:
 macos-autotools-build:
     <<: *macos_build_definition
     before_script:
-        - brew update
-        - brew install autogen || brew upgrade autogen
-        - brew install bison || brew upgrade bison
-        - brew install pango || brew upgrade pango
-        - export PATH="/usr/local/opt/bison/bin:$PATH"
         - export build_system="autotools"
-        - python3 gen_version.py > VERSION # FIXME: remove when building from portable source
-        - echo experimental > COLLECTION
     tags:
         - macos
 
@@ -292,14 +293,7 @@ fedora31-cmake-build:
 macos-cmake-build:
     <<: *macos_build_definition
     before_script:
-        - brew update
-        - brew install cmake || brew upgrade cmake
-        - brew install bison || brew upgrade bison
-        - brew install pango || brew upgrade pango
-        - export PATH="/usr/local/opt/bison/bin:$PATH"
         - export build_system="cmake"
-        - python3 gen_version.py > VERSION
-        - echo experimental > COLLECTION
     tags:
         - macos