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



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

    ci: Lint with vala-lint

 .gitlab-ci.yml         | 10 ++++++++++
 .gitlab-ci/run-lint.sh |  9 +++++++++
 2 files changed, 19 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0ffa4aa..6e0033dd 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,12 @@ stop_review:
 
 nightly:
   extends: '.publish_nightly'
+
+lint:
+  image: fedora:31
+  stage: .pre
+  before_script:
+    - dnf update -y
+    - dnf install -y git glib2-devel meson vala
+  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]