mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +00:00
Add (make tools) to install (for now only) golangci-lint, use it in Cirrus
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
d4bd787e5f
commit
7c66b7405a
@ -52,8 +52,9 @@ validate_task:
|
|||||||
image: '${SKOPEO_CIDEV_CONTAINER_FQIN}'
|
image: '${SKOPEO_CIDEV_CONTAINER_FQIN}'
|
||||||
cpu: 4
|
cpu: 4
|
||||||
memory: 8
|
memory: 8
|
||||||
script: |
|
setup_script: |
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
|
make tools
|
||||||
|
test_script: |
|
||||||
make validate-local
|
make validate-local
|
||||||
make vendor && hack/tree_status.sh
|
make vendor && hack/tree_status.sh
|
||||||
|
|
||||||
@ -92,7 +93,7 @@ osx_task:
|
|||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
brew update
|
brew update
|
||||||
brew install gpgme go go-md2man
|
brew install gpgme go go-md2man
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
|
make tools
|
||||||
test_script: |
|
test_script: |
|
||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
go version
|
go version
|
||||||
|
5
Makefile
5
Makefile
@ -181,6 +181,11 @@ install-completions: completions
|
|||||||
shell:
|
shell:
|
||||||
$(CONTAINER_RUN) bash
|
$(CONTAINER_RUN) bash
|
||||||
|
|
||||||
|
tools:
|
||||||
|
if [ ! -x "$(GOBIN)/golangci-lint" ]; then \
|
||||||
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.52.2 ; \
|
||||||
|
fi
|
||||||
|
|
||||||
check: validate test-unit test-integration test-system
|
check: validate test-unit test-integration test-system
|
||||||
|
|
||||||
test-integration:
|
test-integration:
|
||||||
|
Loading…
Reference in New Issue
Block a user