forked from AdguardTeam/AdGuardHome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request: all: add race build mode
Squashed commit of the following: commit 37ca296 Author: Ainar Garipov <[email protected]> Date: Fri Apr 2 13:27:32 2021 +0300 all: run tests with race enabled commit 20af1ab Author: Ainar Garipov <[email protected]> Date: Fri Apr 2 13:14:36 2021 +0300 all: add race build mode
- Loading branch information
Showing
2 changed files
with
21 additions
and
4 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ GPG_KEY = [email protected] | |
GPG_KEY_PASSPHRASE = not-a-real-password | ||
NPM = npm | ||
NPM_FLAGS = --prefix $(CLIENT_DIR) | ||
RACE = 0 | ||
SIGN = 1 | ||
VERBOSE = 0 | ||
VERSION = v0.0.0 | ||
|
@@ -30,6 +31,7 @@ ENV = env\ | |
GO='$(GO)'\ | ||
GOPROXY='$(GOPROXY)'\ | ||
PATH="$${PWD}/bin:$$($(GO) env GOPATH)/bin:$${PATH}"\ | ||
RACE='$(RACE)'\ | ||
SIGN='$(SIGN)'\ | ||
VERBOSE='$(VERBOSE)'\ | ||
VERSION='$(VERSION)'\ | ||
|
@@ -75,9 +77,12 @@ js-beta-test: ; # TODO(v.abdulmyanov): Add tests for the new client. | |
go-build: ; $(ENV) "$(SHELL)" ./scripts/make/go-build.sh | ||
go-deps: ; $(ENV) "$(SHELL)" ./scripts/make/go-deps.sh | ||
go-lint: ; $(ENV) "$(SHELL)" ./scripts/make/go-lint.sh | ||
go-test: ; $(ENV) "$(SHELL)" ./scripts/make/go-test.sh | ||
go-tools: ; $(ENV) "$(SHELL)" ./scripts/make/go-tools.sh | ||
|
||
# TODO(a.garipov): Think about making RACE='1' the default for all | ||
# targets. | ||
go-test: ; $(ENV) RACE='1' "$(SHELL)" ./scripts/make/go-test.sh | ||
|
||
go-check: go-tools go-lint go-test | ||
|
||
openapi-lint: ; cd ./openapi/ && $(YARN) 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