-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: Alex Collins <[email protected]>
- Loading branch information
Showing
4 changed files
with
5 additions
and
34 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
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 |
---|---|---|
|
@@ -379,14 +379,10 @@ lint: server/static/files.go $(GOPATH)/bin/golangci-lint | |
# Lint Go files | ||
$(GOPATH)/bin/golangci-lint run --fix --verbose | ||
|
||
$(GOPATH)/bin/go-junit-report: | ||
go install github.com/jstemmer/[email protected] | ||
|
||
# for local we have a faster target that prints to stdout, does not use json, and can cache because it has no coverage | ||
.PHONY: test | ||
test: server/static/files.go dist/argosay $(GOPATH)/bin/go-junit-report | ||
env KUBECONFIG=/dev/null $(GOTEST) 2>&1 | tee test.out | ||
cat test.out | go-junit-report > junit.xml | ||
test: server/static/files.go dist/argosay | ||
env KUBECONFIG=/dev/null $(GOTEST) ./... | ||
|
||
.PHONY: install | ||
install: githooks | ||
|
@@ -476,9 +472,8 @@ test-e2e: test-api test-cli test-cron test-executor test-functional | |
|
||
test-cli: ./dist/argo | ||
|
||
test-%: $(GOPATH)/bin/go-junit-report | ||
go test -v -timeout 15m -count 1 --tags $* -parallel 10 ./test/e2e 2>&1 | tee test.out | ||
cat test.out | go-junit-report > junit.xml | ||
test-%: | ||
go test -v -timeout 15m -count 1 --tags $* -parallel 10 ./test/e2e | ||
|
||
.PHONY: test-examples | ||
test-examples: ./dist/argo | ||
|
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