[gnome-notes/wip/sadiq/ci] ci: Do native build



commit f869a644f037b1fefe35082e97ede315483fcce8
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Jan 3 11:15:39 2019 +0530

    ci: Do native build
    
    flatpak builds are very much resource consuming. As we use builds
    only for testing the source and not to deliver any binaries, native
    builds can be used, which is simple and fast

 .gitlab-ci.yml | 40 ++++++++++++++++++----------------------
 1 file changed, 18 insertions(+), 22 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce2e2a6..36eb6df 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,24 +1,20 @@
 stages:
-- test
+  - build
 
-flatpak:
-    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-    stage: test
-
-    variables:
-        # Replace with your manifest path
-        MANIFEST_PATH: "build-aux/flatpak/org.gnome.Notes.json"
-        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
-        # Replace with your application name, as written in the manifest
-        FLATPAK_MODULE: "bijiben"
-        # Make sure to keep this in sync with the Flatpak manifest, all arguments
-        # are passed except the config-args because we build it ourselves
-        # CONFIGURE_ARGS: "-Dtests=all"
-
-    script:
-        - git submodule update --init --recursive
-        - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
-        - flatpak build app meson --prefix=/app ${CONFIGURE_ARGS} _build
-        - flatpak build app ninja -C _build install
-        # Run tests inside the Flatpak env emulating a display
-        - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+build:
+  image: pksadiq/gtk:fedora-bijiben
+  stage: build
+  variables:
+    CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
+    CCACHE_DIR: "${CCACHE_BASEDIR}/_ccache"
+    MESON_ARGS: "--buildtype=debugoptimized"
+  script:
+    - git submodule update --init --recursive
+    - meson ${MESON_ARGS} _build
+    - ccache --zero-stats
+    - ninja -C _build
+    - ccache --show-stats
+  cache:
+    key: build
+    paths:
+      - _ccache/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]