Skip to content

Commit

Permalink
global make test will no longer fail on termux
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 19, 2024
1 parent 6a7c468 commit a5710fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions csharp/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NOT_TERMUX?=$(shell command -v termux-setup-storage > /dev/null 2>&1 ; echo $$?)
BLUE=\033[0;34m
NC=\033[0m # No Color
COV?=false
Expand All @@ -18,13 +19,19 @@ clean:
dotnet clean || rm ./*/{bin,obj,TestResults} || echo

test: dependencies
ifneq ($(NOT_TERMUX),0)
dotnet test --nologo $(cov_args)
endif

test_%: dependencies
$(MAKE) test $(MFLAGS)

dependencies:
ifneq ($(NOT_TERMUX),0)
dotnet restore
endif

lint:
ifneq ($(NOT_TERMUX),0)
dotnet format --verify-no-changes
endif

0 comments on commit a5710fc

Please sign in to comment.