Skip to content

Commit

Permalink
build: use mvn and gradle wrapper in Makefile build
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasia committed Nov 4, 2023
1 parent 36ca9cf commit 4496a06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.PHONY: clean

mvn = ./tests/fixtures/maven-demo/mvnw
gradle = ./tests/fixtures/gradle-demo/gradlew

all: prepare-demo test

test: install
Expand All @@ -10,8 +13,8 @@ test-fail-fast: install

prepare-demo:
# it is expected to fail because there are failing tests
-mvn -f tests/fixtures/maven-demo/pom.xml clean verify --fail-at-end -Dtest="*"
-gradle -p tests/fixtures/gradle-demo clean test --continue
-$(mvn) -f tests/fixtures/maven-demo/pom.xml clean verify --fail-at-end -Dtest="*"
-$(gradle) -p tests/fixtures/gradle-demo clean test --continue

install: deps/plenary.nvim deps/nvim-treesitter deps/nvim-treesitter/parser/java.so deps/neotest

Expand All @@ -32,8 +35,8 @@ deps/nvim-treesitter/parser/java.so: deps/nvim-treesitter

clean:
rm -rf deps/plenary.nvim deps/nvim-treesitter deps/neotest
mvn -f tests/fixtures/maven-demo/pom.xml clean
gradle -p tests/fixtures/gradle-demo clean
$(mvn) -f tests/fixtures/maven-demo/pom.xml clean
$(gradle) -p tests/fixtures/gradle-demo clean

validate:
stylua --check .
Expand Down

0 comments on commit 4496a06

Please sign in to comment.