mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-22 10:00:38 +00:00
Merge pull request #10 from appleboy/module
feat(go): switch dep to go module
This commit is contained in:
commit
6d424dbb24
@ -11,6 +11,7 @@ environment:
|
|||||||
secure: '4YzzahbEiMZQJpOCOd1LAw=='
|
secure: '4YzzahbEiMZQJpOCOd1LAw=='
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
secure: 'VqO/G3Zfslu6zSLdwHKO+Q=='
|
secure: 'VqO/G3Zfslu6zSLdwHKO+Q=='
|
||||||
|
GO111MODULE: on
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: |
|
- ps: |
|
||||||
@ -21,9 +22,6 @@ install:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
go get -u github.com/golang/dep/cmd/dep
|
|
||||||
dep ensure
|
|
||||||
|
|
||||||
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
||||||
go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o release/drone-ansible.exe
|
go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o release/drone-ansible.exe
|
||||||
} else {
|
} else {
|
||||||
|
24
.drone.yml
24
.drone.yml
@ -3,29 +3,24 @@ workspace:
|
|||||||
path: src/github.com/drone-plugins/drone-ansible
|
path: src/github.com/drone-plugins/drone-ansible
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
deps:
|
|
||||||
image: golang:1.10
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- go get -u github.com/golang/dep/cmd/dep
|
|
||||||
- dep ensure
|
|
||||||
- dep status
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: golang:1.10
|
image: golang:1.11
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- GO111MODULE=on
|
||||||
commands:
|
commands:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- go test -cover ./...
|
- go test -cover ./...
|
||||||
|
|
||||||
build_linux_amd64:
|
build_linux_amd64:
|
||||||
image: golang:1.10
|
image: golang:1.11
|
||||||
pull: true
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- GOOS=linux
|
- GOOS=linux
|
||||||
- GOARCH=amd64
|
- GOARCH=amd64
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
- GO111MODULE=on
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if test "${DRONE_TAG}" = ""; then
|
if test "${DRONE_TAG}" = ""; then
|
||||||
@ -35,13 +30,14 @@ pipeline:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# build_linux_i386:
|
# build_linux_i386:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
# - GOOS=linux
|
# - GOOS=linux
|
||||||
# - GOARCH=386
|
# - GOARCH=386
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
@ -51,13 +47,14 @@ pipeline:
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
# build_linux_arm64:
|
# build_linux_arm64:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
# - GOOS=linux
|
# - GOOS=linux
|
||||||
# - GOARCH=arm64
|
# - GOARCH=arm64
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
@ -67,7 +64,7 @@ pipeline:
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
# build_linux_arm:
|
# build_linux_arm:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
@ -75,6 +72,7 @@ pipeline:
|
|||||||
# - GOARCH=arm
|
# - GOARCH=arm
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
# - GOARM=7
|
# - GOARM=7
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
|
21
Gopkg.lock
generated
21
Gopkg.lock
generated
@ -1,21 +0,0 @@
|
|||||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
||||||
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
name = "github.com/pkg/errors"
|
|
||||||
packages = ["."]
|
|
||||||
revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
|
|
||||||
version = "v0.8.0"
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
name = "github.com/urfave/cli"
|
|
||||||
packages = ["."]
|
|
||||||
revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
|
|
||||||
version = "v1.20.0"
|
|
||||||
|
|
||||||
[solve-meta]
|
|
||||||
analyzer-name = "dep"
|
|
||||||
analyzer-version = 1
|
|
||||||
inputs-digest = "dc16a066ec8e18d633e963b36f9c09f580b9323f1191cd89a69eebb1852abe92"
|
|
||||||
solver-name = "gps-cdcl"
|
|
||||||
solver-version = 1
|
|
11
Gopkg.toml
11
Gopkg.toml
@ -1,11 +0,0 @@
|
|||||||
[[constraint]]
|
|
||||||
name = "github.com/pkg/errors"
|
|
||||||
version = "0.8.0"
|
|
||||||
|
|
||||||
[[constraint]]
|
|
||||||
name = "github.com/urfave/cli"
|
|
||||||
version = "1.20.0"
|
|
||||||
|
|
||||||
[prune]
|
|
||||||
go-tests = true
|
|
||||||
unused-packages = true
|
|
6
go.mod
Normal file
6
go.mod
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module github.com/drone-plugins/drone-ansible
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/pkg/errors v0.8.1
|
||||||
|
github.com/urfave/cli v1.20.0
|
||||||
|
)
|
4
go.sum
Normal file
4
go.sum
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
|
||||||
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw=
|
||||||
|
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
Loading…
Reference in New Issue
Block a user