2023-03-15 18:44:45 +00:00
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
|
|
|
|
matrix:
|
2024-01-27 11:50:13 +00:00
|
|
|
- name: FreeBSD 14.0
|
2023-03-15 18:44:45 +00:00
|
|
|
freebsd_instance:
|
2024-01-27 11:50:13 +00:00
|
|
|
image_family: freebsd-14-0
|
2023-03-15 18:44:45 +00:00
|
|
|
|
|
|
|
pkginstall_script:
|
|
|
|
- pkg update -f
|
2023-11-25 18:03:28 +00:00
|
|
|
- pkg install -y go121
|
2023-03-15 19:20:52 +00:00
|
|
|
- pkg install -y git
|
2023-03-15 18:44:45 +00:00
|
|
|
|
2024-02-18 11:29:59 +00:00
|
|
|
#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
|
2023-03-17 11:51:37 +00:00
|
|
|
|
2024-02-18 11:29:59 +00:00
|
|
|
#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
|
|
|
|
2024-02-18 11:29:59 +00:00
|
|
|
#check_script:
|
|
|
|
# - su sftpgo -c 'cd ~/sftpgo && ./sftpgo initprovider && ./sftpgo resetprovider --force'
|
2023-03-15 18:44:45 +00:00
|
|
|
|
2024-02-18 11:29:59 +00:00
|
|
|
#test_script:
|
|
|
|
# - su sftpgo -c 'cd ~/sftpgo && go test -v -tags nopgxregisterdefaulttypes -p 1 -timeout 20m ./... -coverprofile=coverage.txt -covermode=atomic'
|