CI: test on Go 1.12.x, cleanup

We can also use the apt addon to install packages. We also don't need
fast_finish, since we don't use allow_failures anywhere.

Finally, the 'go get' line was pointless, as all dependencies are
vendored, and 'go test' will catch build failures.
This commit is contained in:
Daniel Martí
2019-05-26 21:20:29 +01:00
committed by Cory Bennett
parent 9f46c8499d
commit 80743e4da8
2 changed files with 11 additions and 13 deletions
+10 -11
View File
@@ -1,19 +1,18 @@
sudo: true
before_install:
- sudo apt-get update && sudo apt-get install -y pass gnupg
addons:
apt:
packages:
- pass
- gnupg
language: go
go_import_path: gopkg.in/Netflix-Skunkworks/go-jira.v1
go:
- 1.9
matrix:
fast_finish: true
go_import_path: gopkg.in/Netflix-Skunkworks/go-jira.v1
go:
- 1.12.x
script:
- go get -t -v ./...
- go test ./...
- go vet -composites=false ./...
- make
- make prove 2>&1
+1 -2
View File
@@ -52,9 +52,8 @@ func CmdComponentAddUsage(cmd *kingpin.CmdClause, opts *ComponentAddOptions) err
func CmdComponentAdd(o *oreo.Client, globals *jiracli.GlobalOptions, opts *ComponentAddOptions) error {
var err error
component := &jiradata.Component{}
var resp *jiradata.Component
err = jiracli.EditLoop(&opts.CommonOptions, &opts.Component, component, func() error {
resp, err = jira.CreateComponent(o, globals.Endpoint.Value, component)
_, err = jira.CreateComponent(o, globals.Endpoint.Value, component)
return err
})
if err != nil {