]> granicus.if.org Git - graphviz/commitdiff
Add macOS CI build template
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 30 Sep 2020 15:15:51 +0000 (17:15 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 4 Oct 2020 07:58:14 +0000 (09:58 +0200)
.gitlab-ci.yml

index 5d6651b35a93652b3022c5ee1c8e8fa5b3264332..f59a9342c09625cf3e20e5fb7b2bb823fca41ac2 100644 (file)
@@ -64,6 +64,25 @@ portable-source:
     except:
         - tags
 
+.build_template: &macos_build_definition
+    stage: build
+    script:
+        - logfile=`mktemp`
+        - ci/build.sh 2>&1 | tee $logfile
+        - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt
+        - rm $logfile
+        - cat metrics.txt
+    artifacts:
+        when: on_success
+        expire_in: 1 week
+        paths:
+            - Packages/*/*/*/*/*/*.zip
+            - Metadata/*/*/*/configure.log
+        reports:
+            metrics: metrics.txt
+    except:
+        - tags
+
 .build_template: &windows_build_definition
     stage: build
     needs: []