git » chasquid » commit 61245ee

cirrus: Remove Linux tests

author Alberto Bertogli
2021-05-31 13:54:40 UTC
committer Alberto Bertogli
2021-05-31 14:03:38 UTC
parent fb680336f04ffe6f3619893a1b368249c59e68f8

cirrus: Remove Linux tests

The Linux tests under the Cirrus CI are currently brittle due to
environmental issues. They're also redundant, since Linux testing is
much better covered by the GitLab CI tests.

So this patch removes them, which removes the false positives and speeds
up the Cirrus CI runs.

.cirrus.yml +1 -20

diff --git a/.cirrus.yml b/.cirrus.yml
index 030bdd4..4c1bf2e 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -4,29 +4,10 @@
-# Run go tests under a Linux container.
+# Run go tests under a FreeBSD VM.
 # Note that by default it is run as root, which causes the tests to fail since
 # they expect to get permission denied on some cases, so we create a separate
 # user and use that instead.
-  name: Go tests (Linux)
-  container:
-    image: golang:latest
-  modules_cache:
-    fingerprint_script: cat go.sum
-    folder: $GOPATH/pkg/mod
-  get_script: |
-    useradd --create-home --user-group testing
-    chown -R testing:testing $GOPATH/
-    su testing -c "go mod download"
-    su testing -c "go get ./..."
-  build_script: |
-    su testing -c "go build ./..."
-  test_script: |
-    su testing -c "go test ./..."
-# Run go tests under a FreeBSD VM.
-# Same as linux_task, we need to use a separate non-root user.
   name: Go tests (FreeBSD)