From 3ad86274d81ef66ea8a9298f0196139d5a58ddf9 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 18 Feb 2024 12:29:59 +0100 Subject: [PATCH] CI: disable tests on FreeBSD until Go 1.22 is available Signed-off-by: Nicola Murino --- .cirrus.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 28b3d76d..e112b5c1 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -11,21 +11,21 @@ freebsd_task: - pkg install -y go121 - pkg install -y git - setup_script: - - ln -s /usr/local/bin/go121 /usr/local/bin/go - - pw groupadd sftpgo - - pw useradd sftpgo -g sftpgo -w none -m - - mkdir /home/sftpgo/sftpgo - - cp -R . /home/sftpgo/sftpgo - - chown -R sftpgo:sftpgo /home/sftpgo/sftpgo + #setup_script: + # - ln -s /usr/local/bin/go121 /usr/local/bin/go + # - pw groupadd sftpgo + # - pw useradd sftpgo -g sftpgo -w none -m + # - mkdir /home/sftpgo/sftpgo + # - cp -R . /home/sftpgo/sftpgo + # - chown -R sftpgo:sftpgo /home/sftpgo/sftpgo - compile_script: - - su sftpgo -c 'cd ~/sftpgo && go build -trimpath -tags nopgxregisterdefaulttypes -ldflags "-s -w -X github.com/drakkan/sftpgo/v2/internal/version.commit=`git describe --always --abbrev=8 --dirty` -X github.com/drakkan/sftpgo/v2/internal/version.date=`date -u +%FT%TZ`" -o sftpgo' - - su sftpgo -c 'cd ~/sftpgo/tests/eventsearcher && go build -trimpath -ldflags "-s -w" -o eventsearcher' - - su sftpgo -c 'cd ~/sftpgo/tests/ipfilter && go build -trimpath -ldflags "-s -w" -o ipfilter' + #compile_script: + # - su sftpgo -c 'cd ~/sftpgo && go build -trimpath -tags nopgxregisterdefaulttypes -ldflags "-s -w -X github.com/drakkan/sftpgo/v2/internal/version.commit=`git describe --always --abbrev=8 --dirty` -X github.com/drakkan/sftpgo/v2/internal/version.date=`date -u +%FT%TZ`" -o sftpgo' + # - su sftpgo -c 'cd ~/sftpgo/tests/eventsearcher && go build -trimpath -ldflags "-s -w" -o eventsearcher' + # - su sftpgo -c 'cd ~/sftpgo/tests/ipfilter && go build -trimpath -ldflags "-s -w" -o ipfilter' - check_script: - - su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force' + #check_script: + # - su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force' - test_script: - - su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic' + #test_script: + # - su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'