Skip to content

Commit 6c8df41

Browse files
authored
Merge pull request #19 from arduino/feature/pipeline-improvements
Fixed dep check and add some tools to the drone pipeline
2 parents 949472b + c1ed6c0 commit 6c8df41

13 files changed

+203
-2553
lines changed

.drone.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,19 @@ 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, golangci-lint
13+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10
14+
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
15+
# 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
16+
- dep check
17+
# Check if the code is formatted
18+
- $(exit $(go fmt ./... | wc -l))
19+
# Build
920
- go build
1021
- go test -timeout 20m -v ./... -race
1122
secrets: [TEST_USERNAME, TEST_PASSWORD]

0 commit comments

Comments
 (0)