mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
ci: Merge with Salsa CI pipeline
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
081a833ef2
commit
95236bcb78
@ -1,23 +1,28 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
|
||||||
|
|
||||||
image: registry.salsa.debian.org/freedombox-team/freedombox:gitlabci
|
image: registry.salsa.debian.org/freedombox-team/freedombox:gitlabci
|
||||||
|
|
||||||
before_script:
|
|
||||||
- export DEBIAN_FRONTEND=noninteractive
|
|
||||||
- apt-get update
|
|
||||||
- apt-get build-dep -y . # Dependencies of the plinth Debian package
|
|
||||||
- apt-get install -y $(./run --list-dependencies) # Module dependencies
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- provisioning
|
||||||
|
- build
|
||||||
|
- publish
|
||||||
- test
|
- test
|
||||||
- package
|
|
||||||
|
|
||||||
run-code-quality-tests:
|
code-quality:
|
||||||
stage: test
|
stage: test
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- python3 -m flake8 --exclude actions/domainname-change,actions/dynamicdns,actions/hostname-change,actions/networks plinth actions/*
|
- python3 -m flake8 --exclude actions/domainname-change,actions/dynamicdns,actions/hostname-change,actions/networks plinth actions/*
|
||||||
|
|
||||||
run-unit-tests:
|
unit-tests:
|
||||||
stage: test
|
stage: test
|
||||||
|
needs: []
|
||||||
|
before_script:
|
||||||
|
- export DEBIAN_FRONTEND=noninteractive
|
||||||
|
- apt-get update
|
||||||
|
- apt-get build-dep -y . # Dependencies of the freedombox Debian package
|
||||||
|
- apt-get install -y $(./run --list-dependencies) # Module dependencies
|
||||||
script:
|
script:
|
||||||
- adduser tester --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
|
- adduser tester --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
|
||||||
- echo "tester:password" | chpasswd
|
- echo "tester:password" | chpasswd
|
||||||
@ -30,18 +35,51 @@ run-unit-tests:
|
|||||||
paths:
|
paths:
|
||||||
- test-coverage-report/*
|
- test-coverage-report/*
|
||||||
|
|
||||||
run-doc-tests:
|
doc-tests:
|
||||||
stage: test
|
stage: test
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- doc/scripts/wikiparser.py
|
- doc/scripts/wikiparser.py
|
||||||
|
|
||||||
build-debian-package:
|
extract-source:
|
||||||
stage: package
|
extends: .provisioning-extract-source
|
||||||
script:
|
|
||||||
- DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b
|
|
||||||
- mkdir debian-package
|
|
||||||
- mv ../freedombox*.deb debian-package
|
|
||||||
|
|
||||||
artifacts:
|
build:
|
||||||
paths:
|
extends: .build-package
|
||||||
- debian-package/*
|
|
||||||
|
build i386:
|
||||||
|
extends: .build-package-i386
|
||||||
|
|
||||||
|
build source:
|
||||||
|
extends: .build-source-only
|
||||||
|
|
||||||
|
test-build-any:
|
||||||
|
extends: .test-build-package-any
|
||||||
|
|
||||||
|
test-build-all:
|
||||||
|
extends: .test-build-package-all
|
||||||
|
|
||||||
|
# reprotest causes the pipeline to take too long (over 1 hour)
|
||||||
|
#reprotest:
|
||||||
|
# extends: .test-reprotest
|
||||||
|
|
||||||
|
lintian:
|
||||||
|
extends: .test-lintian
|
||||||
|
|
||||||
|
autopkgtest:
|
||||||
|
extends: .test-autopkgtest
|
||||||
|
|
||||||
|
blhc:
|
||||||
|
extends: .test-blhc
|
||||||
|
|
||||||
|
piuparts:
|
||||||
|
extends: .test-piuparts
|
||||||
|
|
||||||
|
missing-breaks:
|
||||||
|
extends: .test-missing-breaks
|
||||||
|
|
||||||
|
rc-bugs:
|
||||||
|
extends: .test-rc-bugs
|
||||||
|
|
||||||
|
aptly:
|
||||||
|
extends: .publish-aptly
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user