2023-03-15 18:44:45 +00:00
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- name: FreeBSD 13.1
|
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-13-1
|
|
|
|
|
|
|
|
pkginstall_script:
|
|
|
|
- pkg update -f
|
|
|
|
- pkg install -y go
|
2023-03-15 19:20:52 +00:00
|
|
|
- pkg install -y git
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
compile_script:
|
|
|
|
- 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
|
|
|
|
- cd tests/eventsearcher && go build -trimpath -ldflags "-s -w" -o eventsearcher && cd -
|
|
|
|
- cd tests/ipfilter && go build -trimpath -ldflags "-s -w" -o ipfilter && cd -
|
|
|
|
|
|
|
|
setup_script:
|
|
|
|
- pw groupadd sftpgo
|
|
|
|
- pw useradd sftpgo -g sftpgo -w none -m
|
|
|
|
- cp -R . /home/sftpgo
|
|
|
|
- chown -R sftpgo:sftpgo /home/sftpgo
|
|
|
|
|
|
|
|
check_script:
|
|
|
|
- su sftpgo -c 'cd ~ && ./sftpgo initprovider && ./sftpgo resetprovider --force'
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- su sftpgo -c 'cd ~ && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'
|