-
Notifications
You must be signed in to change notification settings - Fork 4
/
.appveyor.yml
52 lines (44 loc) · 1.22 KB
/
.appveyor.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
version: "{build}"
environment:
matrix:
# For regular jobs, such as push, pr and etc.
- job_name: Linux
appveyor_build_worker_image: Previous Ubuntu2004
GOARCH: amd64
- job_name: MacOS
appveyor_build_worker_image: macos-bigsur
GOARCH: amd64
- job_name: Windows
appveyor_build_worker_image: Previous Visual Studio 2019
GOARCH: amd64
for:
- # Linux and MacOS
skip_tags: true
matrix:
only:
- job_name: Linux
- job_name: MacOS
install:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
- go mod vendor
test_script:
- golangci-lint cache clean
- make check
- # Windows
skip_tags: true
build: off
matrix:
only:
- job_name: Windows
environment:
matrix:
- GOARCH: amd64
install:
- choco install make
- go install github.com/golangci/golangci-lint/cmd/[email protected]
- go mod vendor
- set PATH=C:\Users\appveyor\go\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
test_script:
- set GO111MODULE=on
- golangci-lint cache clean
- make check-windows