build: enable gitlab-ci
Closes #85 Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
parent
82cb6756aa
commit
54acc5872c
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue