CI: re-enable tests on FreeBSD

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-11-25 19:03:28 +01:00
parent 74836af66e
commit 56d305fde4
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -8,23 +8,24 @@ freebsd_task:
pkginstall_script: pkginstall_script:
- pkg update -f - pkg update -f
- pkg install -y go - pkg install -y go121
- pkg install -y git - pkg install -y git
#setup_script: setup_script:
# - pw groupadd sftpgo - ln -s /usr/local/bin/go121 /usr/local/bin/go
# - pw useradd sftpgo -g sftpgo -w none -m - pw groupadd sftpgo
# - mkdir /home/sftpgo/sftpgo - pw useradd sftpgo -g sftpgo -w none -m
# - cp -R . /home/sftpgo/sftpgo - mkdir /home/sftpgo/sftpgo
# - chown -R sftpgo:sftpgo /home/sftpgo/sftpgo - cp -R . /home/sftpgo/sftpgo
- chown -R sftpgo:sftpgo /home/sftpgo/sftpgo
#compile_script: 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 && 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/eventsearcher && go build -trimpath -ldflags "-s -w" -o eventsearcher'
# - su sftpgo -c 'cd ~/sftpgo/tests/ipfilter && go build -trimpath -ldflags "-s -w" -o ipfilter' - su sftpgo -c 'cd ~/sftpgo/tests/ipfilter && go build -trimpath -ldflags "-s -w" -o ipfilter'
#check_script: check_script:
# - su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force' - su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force'
#test_script: test_script:
# - su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic' - su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'