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
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
@@ -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]
185 changes: 169 additions & 16 deletions Gopkg.lock

Large diffs are not rendered by default.

32 changes: 21 additions & 11 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
@@ -17,12 +16,14 @@
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true

[prune]
go-tests = true
unused-packages = true

# arduino-cli requires a special version of the builder
[[constraint]]
@@ -93,15 +94,19 @@

[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.3"
version = "v1.0.5"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.1"
version = "v0.0.2"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.1.4"
version = "v1.2.1"

[[constraint]]
branch = "master"
name = "go.bug.st/relaxed-semver"

[[constraint]]
branch = "master"
@@ -113,8 +118,8 @@
source = "github.com/cmaglie/pb"

[[constraint]]
branch = "v2"
name = "gopkg.in/yaml.v2"
version = "2.2.1"

[[constraint]]
name = "github.com/bouk/monkey"
@@ -123,3 +128,8 @@
[[constraint]]
name = "github.com/cavaliercoder/grab"
branch = "master"


[prune]
go-tests = true
unused-packages = true
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ func (c *Config) authenticate(client *http.Client, cookies cookies, uri, user, p
for _, cookie := range cookies["auth"] {
if cookie.Name == "_csrf" && cookie.Value != "" {
csrf = cookie.Value
break;
break
}
}
query := url.Values{}
683 changes: 0 additions & 683 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go

This file was deleted.

238 changes: 0 additions & 238 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go

This file was deleted.

This file was deleted.

This file was deleted.

376 changes: 0 additions & 376 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go

This file was deleted.

711 changes: 0 additions & 711 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go

This file was deleted.

186 changes: 0 additions & 186 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go

This file was deleted.

63 changes: 0 additions & 63 deletions vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go

This file was deleted.

118 changes: 0 additions & 118 deletions vendor/github.com/spf13/cobra/cobra/cmd/licenses.go

This file was deleted.