Add tests section to Makefile
This commit is contained in:
parent
1c14845bbc
commit
153cd02b86
16
Makefile
16
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: react-native
|
.PHONY: react-native test
|
||||||
|
|
||||||
help: ##@other Show this help
|
help: ##@other Show this help
|
||||||
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
||||||
|
@ -31,7 +31,7 @@ prepare: ##@prepare Install dependencies and prepare workspace
|
||||||
npm install
|
npm install
|
||||||
./re-natal deps
|
./re-natal deps
|
||||||
./re-natal use-figwheel
|
./re-natal use-figwheel
|
||||||
lein re-frisk use-re-natal
|
lein re-frisk use-re-natal
|
||||||
./re-natal enable-source-maps
|
./re-natal enable-source-maps
|
||||||
|
|
||||||
prepare-ios: prepare ##@prepare Install iOS specific dependencies
|
prepare-ios: prepare ##@prepare Install iOS specific dependencies
|
||||||
|
@ -42,7 +42,7 @@ prepare-ios: prepare ##@prepare Install iOS specific dependencies
|
||||||
#----------------
|
#----------------
|
||||||
release: release-android release-ios ##@build build release for Android and iOS
|
release: release-android release-ios ##@build build release for Android and iOS
|
||||||
|
|
||||||
release-android: prod-build ##@build build release for Android
|
release-android: prod-build ##@build build release for Android
|
||||||
react-native run-android --variant=release
|
react-native run-android --variant=release
|
||||||
|
|
||||||
release-ios: prod-build ##@build build release for iOS release
|
release-ios: prod-build ##@build build release for iOS release
|
||||||
|
@ -96,6 +96,16 @@ run-android: ##@run Run Android build
|
||||||
run-ios: ##@run Run iOS build
|
run-ios: ##@run Run iOS build
|
||||||
react-native run-ios
|
react-native run-ios
|
||||||
|
|
||||||
|
#--------------
|
||||||
|
# Tests
|
||||||
|
#--------------
|
||||||
|
|
||||||
|
test: ##@test Run tests once in NodeJS
|
||||||
|
lein with-profile test doo node test once
|
||||||
|
|
||||||
|
test-auto: ##@test Run tests in interactive (auto) mode in NodeJS
|
||||||
|
lein with-profile test doo node test
|
||||||
|
|
||||||
#--------------
|
#--------------
|
||||||
# Other
|
# Other
|
||||||
#--------------
|
#--------------
|
||||||
|
|
Loading…
Reference in New Issue