forked from jamesarosen/ember-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.93 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
CHECK = \033[32m✓\033[m
all: clean test_stables
jshint: npm_install
@./node_modules/jshint/bin/jshint lib/*.js spec/*Spec.js script/*.js
@echo "$(CHECK) JSHint OK"
test_stables: jshint npm_install vendor_install
JQUERY_VERSION=1.9.1 EMBER_VERSION=1.0.1 HANDLEBARS_VERSION=1.1.0 ./script/run.js
JQUERY_VERSION=1.11.0 EMBER_VERSION=release HANDLEBARS_VERSION=1.3.0 ./script/run.js
JQUERY_VERSION=2.0.3 EMBER_VERSION=release HANDLEBARS_VERSION=1.3.0 ./script/run.js
WITHOUT_HANDLEBARS=true JQUERY_VERSION=1.9.1 EMBER_VERSION=1.0.1 HANDLEBARS_VERSION=1.1.0 ./script/run.js
WITHOUT_HANDLEBARS=true JQUERY_VERSION=1.11.0 EMBER_VERSION=release HANDLEBARS_VERSION=1.3.0 ./script/run.js
WITHOUT_HANDLEBARS=true JQUERY_VERSION=2.0.3 EMBER_VERSION=release HANDLEBARS_VERSION=1.3.0 ./script/run.js
test_prereleases: jshint npm_install vendor_install
JQUERY_VERSION=1.11.0 EMBER_VERSION=beta HANDLEBARS_VERSION=1.3.0 ./script/run.js
JQUERY_VERSION=1.11.0 EMBER_VERSION=canary HANDLEBARS_VERSION=1.3.0 ./script/run.js
WITHOUT_HANDLEBARS=true JQUERY_VERSION=1.11.0 EMBER_VERSION=beta HANDLEBARS_VERSION=1.3.0 ./script/run.js
WITHOUT_HANDLEBARS=true JQUERY_VERSION=1.11.0 EMBER_VERSION=canary HANDLEBARS_VERSION=1.3.0 ./script/run.js
# Run the tests against the current environment only; don't run any prerequisites like
# dependency installation or JSHint checks.
test:
@echo "Running tests with jQuery $$JQUERY_VERSION, Ember $$EMBER_VERSION, and Handlebars $$HANDLEBARS_VERSION"
@./script/run.js
npm_install:
@npm install 2>&1 1>/dev/null
@echo "$(CHECK) Installed development dependencies"
vendor_install:
@./script/fetch_vendor.js
@echo "$(CHECK) Fetched vendor dependencies"
clean:
@rm -f spec/suite.html
@echo "$(CHECK) Tidied up"
realclean: clean
@rm -f vendor/ember*
@rm -f vendor/handlebars*
@rm -f vendor/jquery*
@echo "$(CHECK) Cleaned *everyhing*"
.PHONY: jshint test_stables test_prereleases test npm_install vendor_install clean realclean