[libmediaart/ebassi/no-more-autotools: 11/11] ci: Use idiomatic Meson for the build instructions




commit 120edbcdd18c383955beaa2df547863d59b3e3c5
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu May 20 21:02:07 2021 +0100

    ci: Use idiomatic Meson for the build instructions
    
    In other words: meson setup, meson compile, and meson test.

 .gitlab-ci.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 530b2ce..8c1b947 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,15 +15,14 @@ stages:
   stage: test
 
   script:
-    - mkdir build; cd build
-    - meson ..
-    - ninja
+    - meson setup _build .
+    - meson compile -C _build
     - |
       # Remove the many "CI_" variables from the environment. Meson dumps the
       # whole environment for every failed test, and that gives a whole
       # screenful of junk each time unless we strip these.
       unset $(env|grep -o '^CI_[^=]*')
-      env meson test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}
+      env meson test -C _build --print-errorlogs ${MESON_TEST_EXTRA_ARGS}
 
   after_script:
     - |


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