Skip to content

Commit 09a28f0

Browse files
authored
[Improvement] Reduce CI on Commit Travis runs (#1249)
1 parent 6e917a9 commit 09a28f0

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.travis.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ go_import_path: github.com/arangodb/kube-arangodb
88
env:
99
- GO111MODULES=off
1010

11-
install:
12-
- make init
13-
1411
script:
15-
- make license-verify license-range-verify fmt-verify linter
16-
- make run-unit-tests
17-
- make bin
12+
- |
13+
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ! -z "$ALWAYS" ]; then
14+
make init
15+
make license-verify license-range-verify fmt-verify linter
16+
make run-unit-tests
17+
make bin
18+
else
19+
make vendor tools-min fmt-verify linter
20+
fi

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- (Feature) SilentRotation High plan
99
- (Improvement) Update arangosync-client package for new API capabilities and better HTTP handling
1010
- (Maintenance) Fix generated license dates
11+
- (Improvement) Reduce CI on Commit Travis runs
1112

1213
## [1.2.24](https://github.com/arangodb/kube-arangodb/tree/1.2.24) (2023-01-25)
1314
- (Bugfix) Fix deployment creation on ARM64

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -493,16 +493,19 @@ tidy:
493493
deps-reload: tidy init
494494

495495
.PHONY: init
496-
init: tools update-generated $(BIN) vendor
496+
init: vendor tools update-generated $(BIN)
497497

498-
.PHONY: tools
499-
tools: update-vendor
498+
.PHONY: tools-min
499+
tools-min: update-vendor
500500
@echo ">> Fetching golangci-lint linter"
501501
@GOBIN=$(GOPATH)/bin go install github.com/golangci/golangci-lint/cmd/[email protected]
502502
@echo ">> Fetching goimports"
503503
@GOBIN=$(GOPATH)/bin go install golang.org/x/tools/cmd/goimports@0bb7e5c47b1a31f85d4f173edc878a8e049764a5
504504
@echo ">> Fetching license check"
505505
@GOBIN=$(GOPATH)/bin go install github.com/google/addlicense@6d92264d717064f28b32464f0f9693a5b4ef0239
506+
507+
.PHONY: tools
508+
tools: tools-min
506509
@echo ">> Fetching gci"
507510
@GOBIN=$(GOPATH)/bin go install github.com/daixiang0/[email protected]
508511
@echo ">> Downloading protobuf compiler..."

0 commit comments

Comments
 (0)