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
|
2022-03-20 22:48:28 +08:00
|
|
|
go_toolchain_cache:
|
2022-03-21 01:03:49 +08:00
|
|
|
fingerprint_key: go1.18
|
|
|
|
folder: /usr/local/go
|
|
|
|
populate_script: |
|
|
|
|
pkg install -y curl
|
|
|
|
curl -LO https://go.dev/dl/go1.18.freebsd-amd64.tar.gz
|
|
|
|
tar -C /usr/local -xf go1.18.freebsd-amd64.tar.gz
|
2020-04-04 04:07:32 +08:00
|
|
|
go_modules_cache:
|
2020-04-03 02:31:03 +08:00
|
|
|
fingerprint_script: cat go.sum
|
2022-03-20 22:48:28 +08:00
|
|
|
folder: $HOME/go/pkg/mod
|
2020-04-03 00:27:31 +08:00
|
|
|
matrix:
|
2022-03-20 22:48:28 +08:00
|
|
|
# Re-enable gccgo when it supports Go 1.18.
|
|
|
|
#- name: Test on gccgo
|
|
|
|
# container:
|
|
|
|
# image: debian:unstable-slim
|
|
|
|
# setup_script:
|
|
|
|
# - apt-get -y update
|
|
|
|
# - apt-get -y install ca-certificates gccgo-11
|
|
|
|
# - ln -sf /usr/bin/go-11 /usr/local/bin/go
|
|
|
|
# env:
|
|
|
|
# # gccgo doesn't support race test
|
|
|
|
# TEST_FLAG: ""
|
2020-04-03 09:30:00 +08:00
|
|
|
- name: Test on FreeBSD
|
|
|
|
freebsd_instance:
|
2022-03-20 22:48:28 +08:00
|
|
|
image_family: freebsd-13-0
|
2020-04-03 11:36:13 +08:00
|
|
|
env:
|
2021-02-11 07:41:17 +08:00
|
|
|
TEST_FLAG: -race
|
2022-03-21 01:03:49 +08:00
|
|
|
PATH: /usr/local/go/bin:$PATH
|
|
|
|
setup_script: pkg install -y git
|
|
|
|
go_version_script: go version
|
|
|
|
test_script: go test $TEST_FLAG ./...
|