summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2020-06-25 23:01:54 +0200
committerDavid Runge <dvzrv@archlinux.org>2020-06-29 20:10:23 +0200
commit47533fd974d596edb15aa640d1b97a2ef2ba0c4d (patch)
treed6f047a5e40ad3c8fa13cb326653972db96b5904 /.gitlab-ci.yml
parent9e004aebf1ad5d3c5065cfbc52f2c44dd6400e12 (diff)
downloadarchiso32-47533fd974d596edb15aa640d1b97a2ef2ba0c4d.tar.xz
Introducing shellcheck in gitlab CI
archiso/mkarchiso: Quoting all variables. Changing pkg_list to be an array instead of a string for easier handling. Using read to properly populate pkg_list from OPTARG with stripped whitespaces. Not exporting iso_label anymore as there seems to be no reason to do so. Introducing line breaks. .editorconfig: Setting max_line_length to 120. Adding a section for YAML files (e.g. .gitlab-ci.yml). configs/releng/build.sh Quting nearly all variables. Introducing line breaks. configs/baseline/build.sh: Quoting all variables. Introducing line breaks. .gitlab-ci.yml: Adding gitlab CI for shelleck linting of the config build scripts, mkarchiso and startup scripts in releng. Closes #19
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..fc0eded
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,15 @@
+---
+
+default:
+ image: archlinux/base
+ before_script:
+ - pacman --noconfirm -Syy
+ - pacman --noconfirm -S base-devel shellcheck
+
+lint:
+ stage: build
+ script:
+ - shellcheck -s bash
+ archiso/mkarchiso
+ configs/{baseline,releng}/build.sh
+ configs/releng/airootfs/root/.automated_script.sh