Skip to content

Commit a792e08

Browse files
author
Mattia Bertorello
committed
Fixed versions and gopkp* so the dep check will be ok and add to the pipeline dep check and go fmt check
1 parent 69d6e0a commit a792e08

12 files changed

+201
-2552
lines changed

.drone.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ workspace:
44

55
pipeline:
66
build:
7-
image: golang:latest
7+
image: golang:1.10
8+
environment:
9+
- DEP_RELEASE_TAG=v0.5.0
810
commands:
11+
- go generate
12+
# Tools install dep
13+
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
14+
# Check the dependency, the -skip-lock is useful because the version are not fixed but depends from the branch master of the libraries so they change very often
15+
- dep check
16+
# Check if the code is formatted
17+
- $(exit $(go fmt ./... | wc -l))
18+
# Build
919
- go build
1020
- go test -v ./... -race
1121
secrets: [TEST_USERNAME, TEST_PASSWORD]

0 commit comments

Comments
 (0)