Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c8df41

Browse files
authoredAug 29, 2018
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

+12-1
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]

‎Gopkg.lock

+169-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Gopkg.toml

+21-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
# Gopkg.toml example
32
#
4-
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
3+
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
54
# for detailed Gopkg.toml documentation.
65
#
76
# required = ["github.com/user/thing/cmd/thing"]
@@ -17,12 +16,14 @@
1716
# source = "github.com/myfork/project2"
1817
#
1918
# [[override]]
20-
# name = "github.com/x/y"
21-
# version = "2.4.0"
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
2226

23-
[prune]
24-
go-tests = true
25-
unused-packages = true
2627

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

9495
[[constraint]]
9596
name = "github.com/sirupsen/logrus"
96-
version = "1.0.3"
97+
version = "v1.0.5"
9798

9899
[[constraint]]
99100
name = "github.com/spf13/cobra"
100-
version = "0.0.1"
101+
version = "v0.0.2"
101102

102103
[[constraint]]
103104
name = "github.com/stretchr/testify"
104-
version = "1.1.4"
105+
version = "v1.2.1"
106+
107+
[[constraint]]
108+
branch = "master"
109+
name = "go.bug.st/relaxed-semver"
105110

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

115120
[[constraint]]
116-
branch = "v2"
117121
name = "gopkg.in/yaml.v2"
122+
version = "2.2.1"
118123

119124
[[constraint]]
120125
name = "github.com/bouk/monkey"
@@ -123,3 +128,8 @@
123128
[[constraint]]
124129
name = "github.com/cavaliercoder/grab"
125130
branch = "master"
131+
132+
133+
[prune]
134+
go-tests = true
135+
unused-packages = true

‎auth/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (c *Config) authenticate(client *http.Client, cookies cookies, uri, user, p
200200
for _, cookie := range cookies["auth"] {
201201
if cookie.Name == "_csrf" && cookie.Value != "" {
202202
csrf = cookie.Value
203-
break;
203+
break
204204
}
205205
}
206206
query := url.Values{}

‎vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go

-683
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go

-238
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_2.go

-71
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_3.go

-78
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go

-376
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go

-711
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go

-186
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go

-63
This file was deleted.

‎vendor/github.com/spf13/cobra/cobra/cmd/licenses.go

-118
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.