2023-03-15 18:44:45 +00:00
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
|
|
|
|
matrix:
|
2023-05-05 17:12:50 +00:00
|
|
|
- name: FreeBSD 13.2
|
2023-03-15 18:44:45 +00:00
|
|
|
freebsd_instance:
|
2023-05-05 17:12:50 +00:00
|
|
|
image_family: freebsd-13-2
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
setup_script:
|
|
|
|
- pw groupadd sftpgo
|
|
|
|
- pw useradd sftpgo -g sftpgo -w none -m
|
2023-03-17 11:51:37 +00:00
|
|
|
- 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'
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
check_script:
|
2023-03-17 11:51:37 +00:00
|
|
|
- su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force'
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
test_script:
|
2023-03-17 11:51:37 +00:00
|
|
|
- su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'
|