-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Javier Romero <[email protected]>
- Loading branch information
Showing
58 changed files
with
1,561 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
install: | ||
- set -e | ||
language: go | ||
go: 1.12.x | ||
|
||
env: | ||
global: | ||
- GO111MODULE=on | ||
|
||
jobs: | ||
include: | ||
- stage: unit test | ||
language: go | ||
go: | ||
- 1.11.x | ||
env: | ||
- GO111MODULE=on | ||
go_import_path: github.com/buildpack/lifecycle | ||
script: | | ||
test -z "$(bin/format | tee >(cat >&2))" | ||
go test -v -parallel=1 -p=1 -count=1 ./... | ||
- os: linux | ||
script: | ||
- docker info | ||
- make | ||
|
||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# Go parameters | ||
GOCMD?=go | ||
GOTEST=$(GOCMD) test -mod=vendor | ||
PACKAGE_BASE=github.com/buildpack/imgutil | ||
PACKAGES:=$(shell $(GOCMD) list -mod=vendor ./... | grep -v /testdata/) | ||
SRC:=$(shell find . -type f -name '*.go' -not -path "*/vendor/*") | ||
|
||
all: test | ||
|
||
imports: | ||
$(GOCMD) install -mod=vendor golang.org/x/tools/cmd/goimports | ||
test -z $$(goimports -l -w -local github.com/buildpack/imgutil $$(find . -type f -name '*.go' -not -path "./vendor/*")) | ||
install-goimports: | ||
@echo "> Installing goimports..." | ||
cd tools; $(GOCMD) install -mod=vendor golang.org/x/tools/cmd/goimports | ||
|
||
format: | ||
test -z $$($(GOCMD) fmt ./...) | ||
format: install-goimports | ||
@echo "> Formating code..." | ||
@goimports -l -w -local ${PACKAGE_BASE} ${SRC} | ||
|
||
vet: | ||
$(GOCMD) vet $$($(GOCMD) list ./... | grep -v /testdata/) | ||
@echo "> Vetting code..." | ||
@$(GOCMD) vet -mod=vendor ${PACKAGES} | ||
|
||
test: format imports vet | ||
test: format vet | ||
$(GOTEST) -parallel=1 -count=1 -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/buildpack/pack/tools | ||
|
||
go 1.13 | ||
|
||
require golang.org/x/tools v0.0.0-20190929041059-e7abfedfabcf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||
golang.org/x/tools v0.0.0-20190929041059-e7abfedfabcf h1:NvypsVlesF+lEDKVK5RNkww4fzArJXChZxNin79j05M= | ||
golang.org/x/tools v0.0.0-20190929041059-e7abfedfabcf/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 7 additions & 4 deletions
11
...x/tools/go/internal/gcimporter/bimport.go → ...x/tools/go/internal/gcimporter/bimport.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 32 additions & 10 deletions
42
...x/tools/go/internal/gcimporter/iimport.go → ...x/tools/go/internal/gcimporter/iimport.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
27 changes: 20 additions & 7 deletions
27
...tools/go/internal/packagesdriver/sizes.go → ...tools/go/internal/packagesdriver/sizes.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
29 changes: 22 additions & 7 deletions
29
...olang.org/x/tools/go/packages/external.go → ...olang.org/x/tools/go/packages/external.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.