diff options
Diffstat (limited to 'vendor/github.com/containers/psgo')
-rw-r--r-- | vendor/github.com/containers/psgo/.gitignore | 15 | ||||
-rw-r--r-- | vendor/github.com/containers/psgo/.travis.yml | 19 | ||||
-rw-r--r-- | vendor/github.com/containers/psgo/Makefile | 58 | ||||
-rw-r--r-- | vendor/github.com/containers/psgo/go.sum | 18 |
4 files changed, 110 insertions, 0 deletions
diff --git a/vendor/github.com/containers/psgo/.gitignore b/vendor/github.com/containers/psgo/.gitignore new file mode 100644 index 000000000..fc8fbcad3 --- /dev/null +++ b/vendor/github.com/containers/psgo/.gitignore @@ -0,0 +1,15 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# everything in build dir +bin/* diff --git a/vendor/github.com/containers/psgo/.travis.yml b/vendor/github.com/containers/psgo/.travis.yml new file mode 100644 index 000000000..1399d24d3 --- /dev/null +++ b/vendor/github.com/containers/psgo/.travis.yml @@ -0,0 +1,19 @@ +language: go + +sudo: required + +servics: + - docker + +go: + - tip + +before_install: + - sudo add-apt-repository ppa:duggan/bats --yes + - sudo apt-get update -qq + - sudo apt-get install -qq bats + +script: + - make validate || travis_terminate 1 + - make build || travis_terminate 1 + - make test || travis_terminate 1 diff --git a/vendor/github.com/containers/psgo/Makefile b/vendor/github.com/containers/psgo/Makefile new file mode 100644 index 000000000..08a1ac623 --- /dev/null +++ b/vendor/github.com/containers/psgo/Makefile @@ -0,0 +1,58 @@ +SHELL= /bin/bash +GO ?= go +BUILD_DIR := ./bin +BIN_DIR := /usr/local/bin +NAME := psgo +PROJECT := github.com/containers/psgo +BATS_TESTS := *.bats +GO_SRC=$(shell find . -name \*.go) + +all: validate build + +.PHONY: build +build: $(GO_SRC) + $(GO) build -buildmode=pie -o $(BUILD_DIR)/$(NAME) $(PROJECT)/sample + +.PHONY: clean +clean: + rm -rf $(BUILD_DIR) + +.PHONY: vendor +vendor: + GO111MODULE=on go mod tidy + GO111MODULE=on go mod vendor + GO111MODULE=on go mod verify + +.PHONY: validate +validate: .install.lint + @which gofmt >/dev/null 2>/dev/null || (echo "ERROR: gofmt not found." && false) + test -z "$$(gofmt -s -l . | grep -vE 'vendor/' | tee /dev/stderr)" + @which golangci-lint >/dev/null 2>/dev/null|| (echo "ERROR: golangci-lint not found." && false) + test -z "$$(golangci-lint run)" + @go doc cmd/vet >/dev/null 2>/dev/null|| (echo "ERROR: go vet not found." && false) + test -z "$$($(GO) vet $$($(GO) list $(PROJECT)/...) 2>&1 | tee /dev/stderr)" + +.PHONY: test +test: test-unit test-integration + +.PHONY: test-integration +test-integration: + bats test/$(BATS_TESTS) + +.PHONY: test-unit +test-unit: + go test -v $(PROJECT) + go test -v $(PROJECT)/internal/... + +.PHONY: install +install: + sudo install -D -m755 $(BUILD_DIR)/$(NAME) $(BIN_DIR) + +.PHONY: .install.lint +.install.lint: + # Workaround for https://github.com/golangci/golangci-lint/issues/523 + go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@master + +.PHONY: uninstall +uninstall: + sudo rm $(BIN_DIR)/$(NAME) diff --git a/vendor/github.com/containers/psgo/go.sum b/vendor/github.com/containers/psgo/go.sum new file mode 100644 index 000000000..f8a7d1f0c --- /dev/null +++ b/vendor/github.com/containers/psgo/go.sum @@ -0,0 +1,18 @@ +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= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/opencontainers/runc v0.0.0-20190425234816-dae70e8efea4 h1:y5PMn9UW9cD5xvjoMs9pJ77zs5DgGkiDv0BI/Qew51o= +github.com/opencontainers/runc v0.0.0-20190425234816-dae70e8efea4/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= +github.com/pkg/errors v0.0.0-20190227000051-27936f6d90f9 h1:dIsTcVF0w9viTLHXUEkDI7cXITMe+M/MRRM2MwisVow= +github.com/pkg/errors v0.0.0-20190227000051-27936f6d90f9/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sirupsen/logrus v0.0.0-20190403091019-9b3cdde74fbe h1:PBQLA9wc7FrXiUBnlfs/diNlg3ZdrP21tzcgL3OlVhU= +github.com/sirupsen/logrus v0.0.0-20190403091019-9b3cdde74fbe/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190425145619-16072639606e h1:4ktJgTV34+N3qOZUc5fAaG3Pb11qzMm3PkAoTAgUZ2I= +golang.org/x/sys v0.0.0-20190425145619-16072639606e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= |