forked from elves/elvish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
34 lines (34 loc) · 1021 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
test_task:
env:
ELVISH_TEST_TIME_SCALE: 20
go_toolchain_cache:
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
go_modules_cache:
fingerprint_script: cat go.sum
folder: $HOME/go/pkg/mod
matrix:
# 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: ""
- name: Test on FreeBSD
freebsd_instance:
image_family: freebsd-13-0
env:
TEST_FLAG: -race
PATH: /usr/local/go/bin:$PATH
setup_script: pkg install -y git
go_version_script: go version
test_script: go test $TEST_FLAG ./...