Use go mod (#265)
This commit is contained in:
@@ -13,9 +13,6 @@ commands:
|
|||||||
description: "Get go dependencies"
|
description: "Get go dependencies"
|
||||||
steps:
|
steps:
|
||||||
- run: go get github.com/jstemmer/go-junit-report
|
- run: go get github.com/jstemmer/go-junit-report
|
||||||
- run: go get github.com/davecgh/go-spew/spew
|
|
||||||
- run: go get gopkg.in/yaml.v2
|
|
||||||
- run: go get github.com/BurntSushi/toml
|
|
||||||
|
|
||||||
run_test:
|
run_test:
|
||||||
description: "Run unit tests for a go module"
|
description: "Run unit tests for a go module"
|
||||||
@@ -53,6 +50,8 @@ jobs:
|
|||||||
name: golang
|
name: golang
|
||||||
version: "<<parameters.version>>"
|
version: "<<parameters.version>>"
|
||||||
working_directory: /go/src/github.com/pelletier/go-toml
|
working_directory: /go/src/github.com/pelletier/go-toml
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: mkdir -p /tmp/workspace
|
- run: mkdir -p /tmp/workspace
|
||||||
|
|||||||
+2
-3
@@ -8,11 +8,10 @@ matrix:
|
|||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
script:
|
script:
|
||||||
- if [ -n "$(go fmt ./...)" ]; then exit 1; fi
|
- if [ -n "$(go fmt ./...)" ]; then exit 1; fi
|
||||||
- go get github.com/davecgh/go-spew/spew
|
|
||||||
- go get gopkg.in/yaml.v2
|
|
||||||
- go get github.com/BurntSushi/toml
|
|
||||||
- go test github.com/pelletier/go-toml -race -coverprofile=coverage.txt -covermode=atomic
|
- go test github.com/pelletier/go-toml -race -coverprofile=coverage.txt -covermode=atomic
|
||||||
- go test github.com/pelletier/go-toml/cmd/tomljson
|
- go test github.com/pelletier/go-toml/cmd/tomljson
|
||||||
- go test github.com/pelletier/go-toml/cmd/tomll
|
- go test github.com/pelletier/go-toml/cmd/tomll
|
||||||
|
|||||||
+1
-3
@@ -8,6 +8,7 @@ environment:
|
|||||||
GOPATH: c:\gopath
|
GOPATH: c:\gopath
|
||||||
DEPTESTBYPASS501: 1
|
DEPTESTBYPASS501: 1
|
||||||
GOVERSION: 1.12
|
GOVERSION: 1.12
|
||||||
|
GO111MODULE: on
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- git config --global core.autocrlf input
|
- git config --global core.autocrlf input
|
||||||
@@ -27,9 +28,6 @@ build: false
|
|||||||
deploy: false
|
deploy: false
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- go get github.com/davecgh/go-spew/spew
|
|
||||||
- go get gopkg.in/yaml.v2
|
|
||||||
- go get github.com/BurntSushi/toml
|
|
||||||
- go test github.com/pelletier/go-toml
|
- go test github.com/pelletier/go-toml
|
||||||
- go test github.com/pelletier/go-toml/cmd/tomljson
|
- go test github.com/pelletier/go-toml/cmd/tomljson
|
||||||
- go test github.com/pelletier/go-toml/cmd/tomll
|
- go test github.com/pelletier/go-toml/cmd/tomll
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
module github.com/pelletier/go-toml
|
||||||
|
|
||||||
|
go 1.12
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/BurntSushi/toml v0.3.1
|
||||||
|
github.com/davecgh/go-spew v1.1.1
|
||||||
|
gopkg.in/yaml.v2 v2.2.2
|
||||||
|
)
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||||
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||||
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
Reference in New Issue
Block a user