summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLeonidas Spyropoulos <artafinde@archlinux.org>2022-01-27 13:14:09 +0000
committerLevente Polyak <anthraxx@archlinux.org>2022-04-28 19:10:59 +0200
commit54acc5872c74832a23931d86396e5f44439cdada (patch)
tree07917009e83b8a9144b9231f8a659f8e75171215 /.gitlab-ci.yml
parent82cb6756aadd6f03cbefd46132675068a47efdae (diff)
downloaddevtools-54acc5872c74832a23931d86396e5f44439cdada.tar.xz
build: enable gitlab-ci
Closes #85 Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3a75540
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+image: "archlinux:latest"
+
+stages:
+ - build
+ - test
+
+build:
+ stage: build
+ needs: []
+ script:
+ - pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils asciidoc
+ - make PREFIX=/usr
+ - make PREFIX=/usr DESTDIR=build install
+
+check:
+ stage: test
+ needs: []
+ script:
+ - pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils asciidoc shellcheck
+ - make check || true
+ - SHELLCHECK_OPTS="-S error" make check