[gnome-games/wip/exalm/lint] ci: Lint with vala-lint



commit 05c76b4c32e81fb9dd8baaf0eaafef346b44ca8a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jan 28 20:27:18 2020 +0500

    ci: Lint with vala-lint

 .gitlab-ci.yml         | 7 +++++++
 .gitlab-ci/run-lint.sh | 9 +++++++++
 2 files changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0ffa4aa..e876440a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
 
 stages:
+  - lint
   - test
   - deploy
 
@@ -39,3 +40,9 @@ stop_review:
 
 nightly:
   extends: '.publish_nightly'
+
+lint:
+  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+  stage: .pre
+  script:
+    - bash -x ./.gitlab-ci/run-lint.sh
diff --git a/.gitlab-ci/run-lint.sh b/.gitlab-ci/run-lint.sh
new file mode 100644
index 00000000..8476a919
--- /dev/null
+++ b/.gitlab-ci/run-lint.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+git clone https://github.com/vala-lang/vala-lint.git
+cd vala-lint
+meson --prefix=/usr build
+ninja
+ninja install
+
+io.elementary.vala-lint


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