mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +02:00
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:
committed by
Cory Bennett
parent
9f46c8499d
commit
80743e4da8
+10
-11
@@ -1,19 +1,18 @@
|
|||||||
sudo: true
|
addons:
|
||||||
before_install:
|
apt:
|
||||||
- sudo apt-get update && sudo apt-get install -y pass gnupg
|
packages:
|
||||||
|
- pass
|
||||||
|
- gnupg
|
||||||
|
|
||||||
language: go
|
language: go
|
||||||
go_import_path: gopkg.in/Netflix-Skunkworks/go-jira.v1
|
|
||||||
go:
|
|
||||||
- 1.9
|
|
||||||
|
|
||||||
matrix:
|
go_import_path: gopkg.in/Netflix-Skunkworks/go-jira.v1
|
||||||
fast_finish: true
|
|
||||||
|
go:
|
||||||
|
- 1.12.x
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go get -t -v ./...
|
|
||||||
- go test ./...
|
- go test ./...
|
||||||
- go vet -composites=false ./...
|
- go vet -composites=false ./...
|
||||||
- make
|
- make
|
||||||
- make prove 2>&1
|
- make prove 2>&1
|
||||||
|
|
||||||
|
|||||||
@@ -52,9 +52,8 @@ func CmdComponentAddUsage(cmd *kingpin.CmdClause, opts *ComponentAddOptions) err
|
|||||||
func CmdComponentAdd(o *oreo.Client, globals *jiracli.GlobalOptions, opts *ComponentAddOptions) error {
|
func CmdComponentAdd(o *oreo.Client, globals *jiracli.GlobalOptions, opts *ComponentAddOptions) error {
|
||||||
var err error
|
var err error
|
||||||
component := &jiradata.Component{}
|
component := &jiradata.Component{}
|
||||||
var resp *jiradata.Component
|
|
||||||
err = jiracli.EditLoop(&opts.CommonOptions, &opts.Component, component, func() error {
|
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
|
return err
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user