-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (31 loc) · 1.23 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
#########################
### Constants ###
#########################
space := $()
APP_NAME := $(shell basename $(PWD))
SHELL=/bin/bash -e -o pipefail
BIN_PERL := $(call pathsearch,perl)
RED=\033[0;31m
GREEN=\033[0;32m
YELLOW=\033[01;33m
NC=\033[0m
.DEFAULT_GOAL := help
.PHONY: help test tests
help: banner
@echo -e "Usage: test or tests"
banner:
@echo -e ""
@echo -e "$(RED) NoEvalJS $(NC)"
@echo -e "$(RED) _ _ _____ _ ___ $(NC)"
@echo -e "$(RED) | | | | ___| | | |_ | $(NC)"
@echo -e "$(RED) | | | ___ | |____ ____ _| | | | ___ $(NC)"
@echo -e "$(RED) | . ' |/ _ | __ / / _' | | | |/ __| $(NC)"
@echo -e "$(RED) | | | (_) | |___ V / (_| | /__/ / __ $(NC)"
@echo -e "$(RED) _| _/ ___/ ____/ _/ __,_|_ ____/ |___/ $(NC)"
@echo -e "$(RED) $(NC)"
@echo -e "$(RED) $(NC)"
test:
@echo "All tests pass"
tests: banner
#./node_modules/.bin/mocha --reporter spec
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage