-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
61 lines (51 loc) · 1.45 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
DEFAULT:
@echo 'Targets:'
@echo ''
@echo ' compile: compile coffee files to js'
@echo ' clean: removed compiled js files'
@echo ''
@echo ' build_doc: generates doc'
@echo ' build_mapping: generates jsonwire mappings'
@echo ''
@echo ' test: run all tests locally'
@echo ' test_e2e: run e2e tests locally'
@echo ' test_midway: run midway tests locally'
@echo ' test_e2e_sauce: run e2e tests on sauce'
@echo ' test_midway_sauce_connect: run midway tests on sauce using sauce connect'
@echo ''
@echo 'Notes:'
@echo ' - For sauce tests set the environment variables SAUCE_USERNAME and SAUCE_ACCESS_KEY.'
@echo ''
compile:
@./node_modules/.bin/coffee --compile index.coffee lib test
clean:
@rm -f lib/*.js
@find test -name '*.js' -exec rm {} \;
@rm -f index.js
build_doc:
coffee doc/doc-builder.coffee 'doc'
build_mapping:
coffee doc/doc-builder.coffee 'mapping' 'supported' > doc/jsonwire-mapping.md
coffee doc/doc-builder.coffee 'mapping' 'full' > doc/jsonwire-full-mapping.md
test:
make test_midway
make test_e2e
test_e2e:
./node_modules/.bin/mocha test/e2e/*-specs.js
test_e2e_sauce:
SAUCE_JOB_ID=`git rev-parse --short HEAD` \
SAUCE=1 make test_e2e
test_midway:
./node_modules/.bin/mocha test/midway/*-specs.js
test_midway_sauce_connect:
SAUCE_JOB_ID=`git rev-parse --short HEAD` \
SAUCE_CONNECT=1 make test_midway
.PHONY: \
DEFAULT \
build_doc \
build_mapping \
test \
test_e2e \
test_e2e_sauce \
test_midway \
test_midway_sauce_connect