Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ node_modules/.bin/semver:
test: lib
node scripts/test.js -all

test-analysis:
make -C tests/analysis_tests clean test

test-tools:
make -C tests/tools_tests clean test

test-syntax:
bash ./scripts/test_syntax.sh
make reanalyze
Expand All @@ -45,7 +51,7 @@ test-syntax-roundtrip:
test-gentype:
make -C tests/gentype_tests/typescript-react-example clean test

test-all: test test-gentype
test-all: test test-gentype test-analysis test-tools

reanalyze:
reanalyze.exe -set-exit-code -all-cmt _build/default/compiler _build/default/tests -exclude-paths compiler/outcome_printer,compiler/ml,compiler/js_parser,compiler/frontend,compiler/ext,compiler/depends,compiler/core,compiler/common,compiler/cmij,compiler/bsb_helper,compiler/bsb
Expand Down Expand Up @@ -95,4 +101,4 @@ dev-container:

.DEFAULT_GOAL := build

.PHONY: build watch rewatch ninja bench dce test test-syntax test-syntax-roundtrip test-gentype test-all lib playground playground-cmijs playground-release artifacts format checkformat clean-gentype clean-rewatch clean clean-all dev-container
.PHONY: build watch rewatch ninja bench dce test test-syntax test-syntax-roundtrip test-gentype test-analysis test-tools test-all lib playground playground-cmijs playground-release artifacts format checkformat clean-gentype clean-rewatch clean clean-all dev-container
2 changes: 1 addition & 1 deletion tests/analysis_tests/tests-generic-jsx-transform/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := test

Expand Down
2 changes: 1 addition & 1 deletion tests/analysis_tests/tests-reanalyze/deadcode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build node_modules/.bin/rescript
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := build

Expand Down
2 changes: 1 addition & 1 deletion tests/analysis_tests/tests-reanalyze/termination/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build node_modules/.bin/rescript
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := build

Expand Down
2 changes: 1 addition & 1 deletion tests/analysis_tests/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := test

Expand Down
2 changes: 1 addition & 1 deletion tests/tools_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: build
./test.sh

clean:
rm -r node_modules lib
rm -rf node_modules lib

.DEFAULT_GOAL := test

Expand Down
Loading