forked from szaydel/memcall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
69 lines (66 loc) · 1.71 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
linux_task:
container:
image: golang:latest
env:
GO111MODULE: on
GOPATH: /tmp/go
CIRRUS_WORKING_DIR: /tmp/go/src/github.com/${CIRRUS_REPO_FULL_NAME}
build_script:
- go version
- go get ./...
- go build -race -v ./...
test_script:
- go test -race -v ./...
osx_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
GO111MODULE: on
GOPATH: /tmp/go
PATH: ${GOPATH}/bin:${PATH}
CIRRUS_WORKING_DIR: /tmp/go/src/github.com/${CIRRUS_REPO_FULL_NAME}
install_script:
- brew install go
build_script:
- go version
- go get ./...
- go build -race -v ./...
test_script:
- go test -race -v ./...
windows_task:
windows_container:
image: cirrusci/windowsservercore:2019
env:
GO111MODULE: on
GOPATH: C:\golang
PATH: ${GOPATH}\bin;C:\Program Files\Go\bin;C:\Users\ContainerAdministrator\go\bin;${PATH}
CIRRUS_WORKING_DIR: C:\golang\src\github.com\${CIRRUS_REPO_FULL_NAME}
install_script:
- choco install -y golang
- choco install -y mingw # This installs MinGW which includes gcc
- refreshenv
- gcc --version
build_script:
- go version
- go get ./...
- env CGO_ENABLED=1 go build -race -v ./...
test_script:
- refreshenv
- echo $PATH
- env CGO_ENABLED=1 go test -race -v ./...
freebsd_task:
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
env:
GO111MODULE: on
GOPATH: /tmp/go
PATH: ${GOPATH}/bin:${PATH}
CIRRUS_WORKING_DIR: /tmp/go/src/github.com/${CIRRUS_REPO_FULL_NAME}
install_script:
- pkg install -y go git
build_script:
- go version
- go get ./...
- go build -race -v ./...
test_script:
- go test -race -v ./...