Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
679 bytes
|
Line | |
---|
1 |
|
---|
2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773
|
---|
3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
---|
4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
|
---|
5 |
|
---|
6 | # BIN directory
|
---|
7 | BIN := $(THIS_DIR)/node_modules/.bin
|
---|
8 |
|
---|
9 | # applications
|
---|
10 | NODE ?= node
|
---|
11 | ZUUL ?= $(NODE) $(BIN)/zuul
|
---|
12 |
|
---|
13 | test:
|
---|
14 | @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
|
---|
15 | $(ZUUL) \
|
---|
16 | --ui mocha-bdd \
|
---|
17 | --browser-name $(BROWSER_NAME) \
|
---|
18 | --browser-version $(BROWSER_VERSION) \
|
---|
19 | test/*.js; \
|
---|
20 | else \
|
---|
21 | $(ZUUL) \
|
---|
22 | --ui mocha-bdd \
|
---|
23 | --browser-name $(BROWSER_NAME) \
|
---|
24 | --browser-version $(BROWSER_VERSION) \
|
---|
25 | --browser-platform "$(BROWSER_PLATFORM)" \
|
---|
26 | test/*.js; \
|
---|
27 | fi
|
---|
28 |
|
---|
29 | .PHONY: test
|
---|
Note:
See
TracBrowser
for help on using the repository browser.