forked from rcasia/neotest-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·59 lines (42 loc) · 1.71 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: clean
mvn = ./tests/fixtures/maven-demo/mvnw
gradle_groovy = ./tests/fixtures/gradle-groovy-demo/gradlew
gradle_kotlin = ./tests/fixtures/gradle-kotlin-demo/gradlew
all: hooks prepare-demo test
hooks:
cp -f ./git-hooks/* .git/hooks/
test: install
./scripts/test
test-fail-fast: install
./scripts/test --fail-fast
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_groovy) -p tests/fixtures/gradle-groovy-demo clean test --continue
-$(gradle_kotlin) -p tests/fixtures/gradle-kotlin-demo clean test --continue
install: deps/plenary.nvim deps/nvim-treesitter deps/nvim-treesitter/parser/java.so deps/nvim-treesitter/parser/groovy.so deps/neotest deps/nvim-nio
deps/plenary.nvim:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim.git $@
deps/nvim-treesitter:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter.git $@
deps/neotest:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-neotest/neotest $@
deps/nvim-nio:
mkdir -p deps
git clone --depth 1 https://github.com/nvim-neotest/nvim-nio $@
deps/nvim-treesitter/parser/groovy.so: deps/nvim-treesitter
nvim --headless -u tests/testrc.vim -c "TSInstallSync groovy | quit"
deps/nvim-treesitter/parser/java.so: deps/nvim-treesitter
nvim --headless -u tests/testrc.vim -c "TSInstallSync java | quit"
clean:
rm -rf deps/plenary.nvim deps/nvim-treesitter deps/neotest
$(mvn) -f tests/fixtures/maven-demo/pom.xml clean
$(gradle_groovy) -p tests/fixtures/gradle-groovy-demo clean
$(gradle_kotlin) -p tests/fixtures/gradle-kotlin-demo clean
validate:
stylua --check .
format:
stylua .