1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

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.
This commit is contained in:
Alberto Bertogli
2021-05-31 14:54:40 +01:00
parent fb680336f0
commit 61245eec27

View File

@@ -4,29 +4,10 @@
env:
GOPROXY: https://proxy.golang.org
# 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.
linux_task:
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.
freebsd_task:
name: Go tests (FreeBSD)
freebsd_instance: