diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2be34afcd1ee3752a9af3507cf35a69f6841ca69..a353b1f2457cf1e1b29c0b276c8887ec27a07338 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: registry.git.autistici.org/ai3/docker/test/golang:master
+  script:
+    - run-go-test ./...
+  artifacts:
+    when: always
+    reports:
+      cobertura: cover.xml
+      junit: report.xml