[gnome-games/wip/exalm/lint] ci: Lint with vala-lint
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/lint] ci: Lint with vala-lint
- Date: Tue, 28 Jan 2020 15:36:29 +0000 (UTC)
commit 97e38a07a36b8c6ad39b217d8340d7eeec900b71
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..3a119d9e 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: fedora:31
+ 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]