This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
82 lines (62 loc) · 1.75 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
default: build
setup:
npm install
.PHONY: test
test: test-screenshot test-missing-selenium test-start-timeout test-no-app test-cleanup test-integration
test-integration: build
@echo "# Integration Tests #"
@./node_modules/.bin/mocha test/integration
@echo ""
@echo ""
test-screenshot: build
@echo "# Automatic Screenshot Tests #"
@./node_modules/.bin/mocha test/screenshots.test.coffee
@echo ""
@echo ""
test-start-timeout: build
@echo "# Start Timeout Tests #"
@./node_modules/.bin/mocha test/start_timeout.test.coffee
@echo ""
@echo ""
test-missing-selenium: build
@echo "# Missing Selenium Tests #"
@./node_modules/.bin/mocha test/missing_selenium.test.coffee
@echo ""
@echo ""
test-no-app: build
@echo "# No App Tests #"
@./node_modules/.bin/mocha test/no_app.test.coffee
@echo ""
@echo ""
test-cleanup: build
@echo "# Cleanup Tests #"
@./node_modules/.bin/mocha test/cleanup.test.coffee
@echo ""
@echo ""
download-selenium:
./cli.js --download-selenium
firefox: build download-selenium
@testium_browser=firefox make test-integration
chrome: build download-selenium
@testium_browser=chrome make test-integration
phantomjs: build
@testium_browser=phantomjs make test-integration
test-integration-all: phantomjs firefox chrome
build:
@./node_modules/.bin/coffee -cbo lib src
@./node_modules/.bin/npub prep src
watch:
@./node_modules/.bin/coffee -cwbo lib src
force-update:
@./cli.js --force-update
prepublish:
./node_modules/.bin/npub prep
clean:
@rm -rf lib
@rm -rf bin/chromedriver bin/selenium.jar
@rm -rf test/integration_log
@rm -rf test/screenshot_integration_log
# This will fail if there are unstaged changes in the checkout
test-checkout-clean:
git diff --exit-code
all: setup clean build force-update test test-checkout-clean