-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Nordix/clean_up_unit_test_flow
Fix presubmit unit test run
- Loading branch information
Showing
3 changed files
with
2 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
presubmits: | ||
- name: presubmit-nephio-go-test | ||
decorate: true | ||
run_if_changed: "(\\.go|Makefile)$" | ||
run_if_changed: "(\\.go|Makefile|\\.mk)$" | ||
spec: | ||
containers: | ||
- image: nephio/gotests:1782782171367346176 | ||
command: | ||
- make | ||
args: | ||
- ci-unit | ||
- name: presubmit-porch-e2e | ||
decorate: true | ||
optional: true | ||
run_if_changed: "(\\.go|Makefile)$" | ||
spec: | ||
containers: | ||
- image: nephio/gotests:1782782171367346176 | ||
command: | ||
- make | ||
args: | ||
- ci-test-porch |
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 |
---|---|---|
|
@@ -159,19 +159,11 @@ generate: generate-api | |
tidy: | ||
@for f in $(MODULES); do (cd $$f; echo "Tidying $$f"; go mod tidy) || exit 1; done | ||
|
||
.PHONY: test-porch | ||
test-porch: | ||
#@for f in $(MODULES); do (cd $$f; echo "Testing $$f"; E2E=1 go test -v -race --count=1 ./...) || exit 1; done | ||
@for f in $(MODULES); do (cd $$f; echo "Testing $$f"; go test -v -race --count=1 ./...) || exit 1; done | ||
|
||
.PHONY: configure-git | ||
configure-git: | ||
git config --global --add user.name test | ||
git config --global --add user.email [email protected] | ||
|
||
.PHONY: ci-test-porch | ||
ci-test-porch: configure-git test-porch | ||
|
||
.PHONY: ci-unit | ||
ci-unit: configure-git test | ||
|
||
|
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