ci: add basic macOS CI
authorTim-Philipp Müller <tim@centricular.com>
Mon, 20 Jul 2020 23:19:13 +0000 (00:19 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 21 Jul 2020 09:33:44 +0000 (10:33 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/46>

.gitlab-ci.yml

index cfa8c5f..e10bfee 100644 (file)
@@ -84,3 +84,29 @@ msys2:
         ninja -C build &&
         meson test -C build &&
         meson test -C build --benchmark"
+
+meson macos:
+  stage: 'build'
+  tags:
+    - gst-macos-10.15
+  artifacts:
+    name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
+    expire_in: '5 days'
+    when: 'always'
+    paths:
+      - "build/meson-logs/*txt"
+  before_script:
+    - pip3 install --upgrade pip
+    # Make sure meson is up to date
+    - pip3 install -U meson
+    # Need to install certificates for python
+    - pip3 install --upgrade certifi
+    # Anther way to install certificates
+    - open /Applications/Python\ 3.8/Install\ Certificates.command
+    # Get ninja
+    - pip3 install -U ninja
+  script:
+    - CERT_PATH=$(python3 -m certifi) && export SSL_CERT_FILE=${CERT_PATH} && export REQUESTS_CA_BUNDLE=${CERT_PATH} && meson build
+    - ninja -C build
+    - meson test -C build
+    - meson test -C build --benchmark