-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da9e2a2
commit 76e8fb7
Showing
1 changed file
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,19 @@ clone: | |
|
||
steps: | ||
- name: lint | ||
image: golangci/golangci-lint:v1.39 | ||
image: golangci/golangci-lint:v1.39.0-alpine | ||
commands: | ||
- apt-get update | ||
- apt-get install -y libpcap-dev | ||
- apk add libpcap-dev libc-dev linux-headers | ||
- golangci-lint run -v | ||
# go 1.16 install doesn't modify go.mod and go.sum | ||
- go install github.com/mgechev/[email protected] | ||
- revive -config .revive.toml -formatter friendly ./... | ||
|
||
- name: test | ||
image: golang:1.16 | ||
- name: test & build | ||
image: golang:1.16-alpine | ||
commands: | ||
- apt-get update | ||
- apt-get install -y libpcap-dev | ||
- apk add libpcap-dev libc-dev gcc linux-headers | ||
- go test ./... -v -cover | ||
|
||
- name: build | ||
image: golang:1.16 | ||
commands: | ||
- apt-get update | ||
- apt-get install -y libpcap-dev | ||
- go build -ldflags "-w -s" | ||
|
||
trigger: | ||
|