chore: update building script path.

This commit is contained in:
Alexandre Pujol 2023-03-29 00:19:44 +01:00
parent 6cbc1a5b47
commit 1088426811
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 8 additions and 14 deletions

View file

@ -23,7 +23,7 @@ bash:
image: koalaman/shellcheck-alpine image: koalaman/shellcheck-alpine
script: script:
- shellcheck --shell=bash - shellcheck --shell=bash
PKGBUILD configure PKGBUILD configure dists/build.sh
debian/apparmor.d.postinst debian/apparmor.d.postrm debian/apparmor.d.postinst debian/apparmor.d.postrm
golangci-lint: golangci-lint:
@ -32,12 +32,6 @@ golangci-lint:
script: script:
- golangci-lint run - golangci-lint run
hadolint:
stage: lint
image: hadolint/hadolint:latest-alpine
script:
- hadolint dists/build/*/Dockerfile
sast: sast:
stage: lint stage: lint

View file

@ -36,7 +36,7 @@ install:
auto: auto:
@[ ${DISTRIBUTION} = Arch ] || exit 0; \ @[ ${DISTRIBUTION} = Arch ] || exit 0; \
makepkg --syncdeps --install --cleanbuild --force makepkg --syncdeps --install --cleanbuild --force --noconfirm
@[ ${DISTRIBUTION} = Ubuntu ] || exit 0; \ @[ ${DISTRIBUTION} = Ubuntu ] || exit 0; \
dch --newversion="${VERSION}" --urgency=medium --distribution=stable --controlmaint "Release ${VERSION}"; \ dch --newversion="${VERSION}" --urgency=medium --distribution=stable --controlmaint "Release ${VERSION}"; \
dpkg-buildpackage -b -d --no-sign; \ dpkg-buildpackage -b -d --no-sign; \
@ -71,23 +71,23 @@ $(P):
lint: lint:
@shellcheck --shell=bash \ @shellcheck --shell=bash \
PKGBUILD configure pick dists/build/build.sh \ PKGBUILD configure dists/build.sh \
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
archlinux: archlinux:
@bash dists/build/build.sh archlinux @bash dists/build.sh archlinux
debian: debian:
@bash dists/build/build.sh debian @bash dists/build.sh debian
ubuntu: ubuntu:
@bash dists/build/build.sh ubuntu @bash dists/build.sh ubuntu
whonix: whonix:
@bash dists/build/build.sh whonix @bash dists/build.sh whonix
clean: clean:
@rm -rf \ @rm -rf \
debian/.debhelper debian/debhelper* debian/*.debhelper debian/${PKGNAME} \ debian/.debhelper debian/debhelper* debian/*.debhelper debian/${PKGNAME} \
${PKGNAME}-*.pkg.tar.zst.sig ${PKGNAME}-*.pkg.tar.zst \ ${PKGNAME}-*.pkg.tar.zst.sig ${PKGNAME}-*.pkg.tar.zst coverage.out \
${PKGNAME}_*.* ${BUILD} ${PKGNAME}_*.* ${BUILD}