2020-04-02 21:31:19 +08:00
|
|
|
test_task:
|
2020-04-04 06:23:06 +08:00
|
|
|
env:
|
2020-08-16 22:50:46 +08:00
|
|
|
ELVISH_TEST_TIME_SCALE: 20
|
2020-04-04 04:07:32 +08:00
|
|
|
go_modules_cache:
|
2020-04-03 02:31:03 +08:00
|
|
|
fingerprint_script: cat go.sum
|
2020-04-03 11:36:13 +08:00
|
|
|
folder: $GOPATH/pkg/mod
|
2020-04-03 00:27:31 +08:00
|
|
|
matrix:
|
2021-02-11 07:50:21 +08:00
|
|
|
- name: Test on gccgo
|
2020-07-11 00:29:48 +08:00
|
|
|
container:
|
|
|
|
image: debian:unstable-slim
|
|
|
|
setup_script:
|
|
|
|
- apt-get -y update
|
2021-08-23 11:23:13 +08:00
|
|
|
- apt-get -y install ca-certificates gccgo-11
|
|
|
|
- ln -sf /usr/bin/go-11 /usr/local/bin/go
|
2020-07-11 00:29:48 +08:00
|
|
|
env:
|
2021-02-11 07:50:21 +08:00
|
|
|
# gccgo doesn't support race test
|
2020-07-11 00:29:48 +08:00
|
|
|
TEST_FLAG: ""
|
2020-04-03 09:30:00 +08:00
|
|
|
- name: Test on FreeBSD
|
|
|
|
freebsd_instance:
|
2020-04-03 00:27:31 +08:00
|
|
|
image_family: freebsd-12-1
|
2021-02-11 07:41:17 +08:00
|
|
|
setup_script: pkg install -y go
|
2020-04-03 11:36:13 +08:00
|
|
|
env:
|
|
|
|
GOPATH: $HOME/go
|
2021-02-11 07:41:17 +08:00
|
|
|
TEST_FLAG: -race
|
2020-04-03 09:59:32 +08:00
|
|
|
go_version_script: go version
|
2020-07-11 00:29:48 +08:00
|
|
|
test_script: go test $TEST_FLAG ./...
|