1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Improvement] Reduce CI on Commit Travis runs (#1249)

This commit is contained in:
Adam Janikowski 2023-02-20 07:09:13 +01:00 committed by GitHub
parent 6e917a96db
commit 09a28f0056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 9 deletions

View file

@ -8,10 +8,13 @@ go_import_path: github.com/arangodb/kube-arangodb
env:
- GO111MODULES=off
install:
- make init
script:
- make license-verify license-range-verify fmt-verify linter
- make run-unit-tests
- make bin
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ! -z "$ALWAYS" ]; then
make init
make license-verify license-range-verify fmt-verify linter
make run-unit-tests
make bin
else
make vendor tools-min fmt-verify linter
fi

View file

@ -8,6 +8,7 @@
- (Feature) SilentRotation High plan
- (Improvement) Update arangosync-client package for new API capabilities and better HTTP handling
- (Maintenance) Fix generated license dates
- (Improvement) Reduce CI on Commit Travis runs
## [1.2.24](https://github.com/arangodb/kube-arangodb/tree/1.2.24) (2023-01-25)
- (Bugfix) Fix deployment creation on ARM64

View file

@ -493,16 +493,19 @@ tidy:
deps-reload: tidy init
.PHONY: init
init: tools update-generated $(BIN) vendor
init: vendor tools update-generated $(BIN)
.PHONY: tools
tools: update-vendor
.PHONY: tools-min
tools-min: update-vendor
@echo ">> Fetching golangci-lint linter"
@GOBIN=$(GOPATH)/bin go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
@echo ">> Fetching goimports"
@GOBIN=$(GOPATH)/bin go install golang.org/x/tools/cmd/goimports@0bb7e5c47b1a31f85d4f173edc878a8e049764a5
@echo ">> Fetching license check"
@GOBIN=$(GOPATH)/bin go install github.com/google/addlicense@6d92264d717064f28b32464f0f9693a5b4ef0239
.PHONY: tools
tools: tools-min
@echo ">> Fetching gci"
@GOBIN=$(GOPATH)/bin go install github.com/daixiang0/gci@v0.3.0
@echo ">> Downloading protobuf compiler..."