-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
72 lines (61 loc) · 1.53 KB
/
.gitlab-ci.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
70
71
72
stages:
- test
.test: &go_test_template
stage: test
script:
- go mod download
- go test -race -tags=livetest ./...
linter:
stage: test
image: golangci/golangci-lint:v1.54.2
script:
- go mod download
- golangci-lint run ./...
coverage:
stage: test
image: golang:1.21
services: []
before_script:
- ""
script:
- go mod download
- ./script/coverage.sh
go-1.17:
<<: *go_test_template
image: golang:1.17
go-1.18:
<<: *go_test_template
image: golang:1.18
go-1.19:
<<: *go_test_template
image: golang:1.19
go-1.20:
<<: *go_test_template
image: golang:1.20
go-1.21:
<<: *go_test_template
image: golang:1.21
go-rc:
<<: *go_test_template
stage: test
image: golang:rc
allow_failure: true
.gopherjs_test: &gopherjs_test_template
<<: *go_test_template
before_script:
- curl -sL https://deb.nodesource.com/setup_${NODE_VER}.x | bash -
- apt-get update -qq && apt-get install -y nodejs
script:
- npm install -g [email protected] && npm update
- npm install
- npm install source-map-support
- mkdir -p /tmp/src
- ( cd /tmp && go install github.com/gopherjs/gopherjs@${GOPHERJS_TAG} )
- npm install -S https://github.com/gopherjs/gopherjs#${GOPHERJS_TAG} && node -r syscall
- gopherjs test ./...
gopherjs1.18:
<<: *gopherjs_test_template
image: golang:1.18
variables:
NODE_VER: 12
GOPHERJS_TAG: v1.18.0-beta3