diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2be34afcd1ee3752a9af3507cf35a69f6841ca69..08bb3e03b193e0ac2428e99aa95240639756cc39 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1 +1,26 @@
 include: "https://git.autistici.org/ai3/build-deb/raw/master/ci-nextstable.yml"
+
+stages:
+  - test
+  - build_pkgsrc
+  - build_pkg
+  - upload_pkg
+
+build_pkgsrc:bullseye:
+  only:
+    - master
+
+build_pkg:bullseye:amd64:
+  only:
+    - master
+
+test:
+  stage: test
+  image: golang:1.14
+  script:
+    - go get github.com/boumenot/gocover-cobertura
+    - go test -v -cover -coverprofile=cover.out ./...
+    - gocover-cobertura < cover.out > cover.xml
+  artifacts:
+    reports:
+      cobertura: cover.xml