Skip to content

Fixed dep check and add some tools to the drone pipeline #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ workspace:

pipeline:
build:
image: golang:latest
image: golang:1.10
environment:
- DEP_RELEASE_TAG=v0.5.0
commands:
- go generate
# Tools install dep, golangci-lint
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# 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
- dep check
# Check if the code is formatted
- $(exit $(go fmt ./... | wc -l))
# Build
- go build
- go test -v ./... -race
secrets: [TEST_USERNAME, TEST_PASSWORD]
Loading