diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2024-03-04 23:37:49 +0100 |
---|---|---|
committer | Christian Heusel <christian@heusel.eu> | 2024-03-23 23:57:46 +0100 |
commit | 05bea3e922aa7aec5cba3242d3f34b5c10fad24e (patch) | |
tree | de09c15c36a0860e93eb664f16db694244218cd1 /.gitlab-ci.yml | |
parent | de0ea3b2f839c2f6ba074d7401d2a28118680da0 (diff) | |
download | devtools-05bea3e922aa7aec5cba3242d3f34b5c10fad24e.tar.xz |
test: add basic bats setup and test cases for `version setup`
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a86515..960f5f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,10 +12,33 @@ build: - make PREFIX=/usr - make PREFIX=/usr DESTDIR=build install -check: +lint: stage: test needs: [] script: - pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils asciidoctor shellcheck - make check || true - SHELLCHECK_OPTS="-S error" make check + +test: + stage: test + needs: [] + script: + - pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils coreutils asciidoctor shellcheck nvchecker bats + - make test BATS_EXTRA_ARGS='--formatter junit' + artifacts: + reports: + junit: build/coverage/bats-report.xml + +coverage: + stage: test + needs: [] + script: + - pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils coreutils asciidoctor shellcheck nvchecker bats kcov jq + - make coverage + coverage: '/Percent covered\s+\d+\.\d+/' + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: build/coverage/bats.*/cobertura.xml |