build: enable gitlab-ci

Closes #85

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-01-27 13:14:09 +00:00 committed by Levente Polyak
parent 82cb6756aa
commit 54acc5872c
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
2 changed files with 21 additions and 15 deletions

View File

@ -1,15 +0,0 @@
on: push
jobs:
test:
runs-on: ubuntu-latest
container: archlinux/archlinux:latest
steps:
- name: Install dependencies
run: pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils asciidoc shellcheck
- uses: actions/checkout@v2
- name: Run tests
run: |
make PREFIX=/usr
make PREFIX=/usr DESTDIR="$(mktemp -d)" install
make check || true
SHELLCHECK_OPTS="-S error" make check

21
.gitlab-ci.yml Normal file
View File

@ -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