2023-03-15 18:44:45 +00:00
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
|
|
|
|
matrix:
|
2024-10-08 17:21:21 +00:00
|
|
|
- name: FreeBSD 14.1
|
2023-03-15 18:44:45 +00:00
|
|
|
freebsd_instance:
|
2024-10-08 17:21:21 +00:00
|
|
|
image_family: freebsd-14-1
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
pkginstall_script:
|
|
|
|
- pkg update -f
|
2024-10-15 17:10:23 +00:00
|
|
|
- pkg install -y go123
|
2023-03-15 19:20:52 +00:00
|
|
|
- pkg install -y git
|
2023-03-15 18:44:45 +00:00
|
|
|
|
2024-04-14 13:40:12 +00:00
|
|
|
setup_script:
|
2024-10-15 17:10:23 +00:00
|
|
|
- ln -s /usr/local/bin/go123 /usr/local/bin/go
|
2024-04-14 13:40:12 +00:00
|
|
|
- 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
|
2023-03-17 11:51:37 +00:00
|
|
|
|
2024-04-14 13:40:12 +00:00
|
|
|
compile_script:
|
2024-10-06 15:16:53 +00:00
|
|
|
- su sftpgo -c 'cd ~/sftpgo && go build -trimpath -tags nopgxregisterdefaulttypes,disable_grpc_modules -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'
|
2024-04-14 13:40:12 +00:00
|
|
|
- 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
|
|
|
|
2024-04-14 13:40:12 +00:00
|
|
|
check_script:
|
|
|
|
- su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force'
|
2023-03-15 18:44:45 +00:00
|
|
|
|
2024-04-14 13:40:12 +00:00
|
|
|
test_script:
|
2024-10-06 15:16:53 +00:00
|
|
|
- su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes,disable_grpc_modules -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'
|