Skip to content

Commit

Permalink
[Improvement] Reduce CI on Commit Travis runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanikow committed Feb 20, 2023
1 parent 6e917a9 commit a5fff79
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,17 @@ 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

.PHONY: tools
tools: tools-min
@echo ">> Fetching license check"
@GOBIN=$(GOPATH)/bin go install github.com/google/addlicense@6d92264d717064f28b32464f0f9693a5b4ef0239
@echo ">> Fetching gci"
Expand Down

0 comments on commit a5fff79

Please sign in to comment.