feat(vendor): switch dep to go module
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
9aee76b213
commit
9b5c18bcdd
6 changed files with 25 additions and 83 deletions
26
.drone.yml
26
.drone.yml
|
|
@ -3,29 +3,24 @@ workspace:
|
|||
path: src/github.com/drone-plugins/drone-hugo
|
||||
|
||||
pipeline:
|
||||
deps:
|
||||
image: golang:1.10
|
||||
pull: true
|
||||
commands:
|
||||
- go get -u github.com/golang/dep/cmd/dep
|
||||
- dep ensure
|
||||
- dep status
|
||||
|
||||
test:
|
||||
image: golang:1.10
|
||||
image: golang:1.11
|
||||
pull: true
|
||||
environment:
|
||||
- GO111MODULE=on
|
||||
commands:
|
||||
- go vet ./...
|
||||
- go test -cover ./...
|
||||
|
||||
build_linux_amd64:
|
||||
image: golang:1.10
|
||||
image: golang:1.11
|
||||
pull: true
|
||||
group: build
|
||||
environment:
|
||||
- GOOS=linux
|
||||
- GOARCH=amd64
|
||||
- CGO_ENABLED=0
|
||||
- GO111MODULE=on
|
||||
commands:
|
||||
- |
|
||||
if test "${DRONE_TAG}" = ""; then
|
||||
|
|
@ -35,13 +30,14 @@ pipeline:
|
|||
fi
|
||||
|
||||
# build_linux_arm64:
|
||||
# image: golang:1.10
|
||||
# image: golang:1.11
|
||||
# pull: true
|
||||
# group: build
|
||||
# environment:
|
||||
# - GOOS=linux
|
||||
# - GOARCH=arm64
|
||||
# - CGO_ENABLED=0
|
||||
# - GO111MODULE=on
|
||||
# commands:
|
||||
# - |
|
||||
# if test "${DRONE_TAG}" = ""; then
|
||||
|
|
@ -51,7 +47,7 @@ pipeline:
|
|||
# fi
|
||||
|
||||
# build_linux_arm:
|
||||
# image: golang:1.10
|
||||
# image: golang:1.11
|
||||
# pull: true
|
||||
# group: build
|
||||
# environment:
|
||||
|
|
@ -59,6 +55,7 @@ pipeline:
|
|||
# - GOARCH=arm
|
||||
# - CGO_ENABLED=0
|
||||
# - GOARM=7
|
||||
# - GO111MODULE=on
|
||||
# commands:
|
||||
# - |
|
||||
# if test "${DRONE_TAG}" = ""; then
|
||||
|
|
@ -68,13 +65,14 @@ pipeline:
|
|||
# fi
|
||||
|
||||
# build_linux_386:
|
||||
# image: golang:1.10
|
||||
# image: golang:1.11
|
||||
# pull: true
|
||||
# group: build
|
||||
# environment:
|
||||
# - GOOS=linux
|
||||
# - GOARCH=386
|
||||
# - CGO_ENABLED=0
|
||||
# - GO111MODULE=on
|
||||
# commands:
|
||||
# - |
|
||||
# if test "${DRONE_TAG}" = ""; then
|
||||
|
|
@ -146,4 +144,4 @@ pipeline:
|
|||
pull: true
|
||||
secrets: [ webhook_url ]
|
||||
when:
|
||||
status: [ success ]
|
||||
status: [ success ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue