-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
54 lines (39 loc) · 1.57 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
SHELL=/bin/bash
.PHONY: watch test pass lint clean start start-container
watch:
supervisor -e ".litcoffee|.coffee|.js" --exec make -- run-server
start: run-server
run-server: static/js/epiclient_v2.js static/js/epiclient_v3.js
exec ./bin/npm-starter
difftest/templates:
cd difftest/ && git clone https://github.com/igroff/epiquery-templates.git \
templates/
test: build difftest/templates
docker-compose up --force-recreate -d
./bin/wait-for-epi
docker-compose exec epiquery difftest run ${TEST_NAME}
test/codeship: build difftest/templates
./bin/wait-for-epi
difftest run
start-container: build difftest/templates
docker-compose up --force-recreate -d
./bin/wait-for-epi
pass/%:
cp difftest/results/$(subst pass/,,$@) difftest/expected/$(subst pass/,,$@)
lint:
find ./src -name '*.coffee' | xargs ./node_modules/.bin/coffeelint -f ./etc/coffeelint.conf
find ./src -name '*.js' | xargs ./node_modules/.bin/jshint
static/js/sockjstest.js: static/js/src/wstest.coffee
./node_modules/.bin/browserify -t coffeeify static/js/src/wstest.coffee > static/js/sockjstest.js
static/js/epiclient_v3.js: src/clients/EpiClient.coffee
./node_modules/.bin/browserify -t coffeeify -r ./src/clients/EpiClient.coffee:epi-client --outfile $@
static/js/hunting-websocket.js: src/clients/hunting-websocket.litcoffee
./node_modules/.bin/browserify -t coffeeify src/clients/hunting-websocket.litcoffee --outfile $@
build: static/js/epiclient_v3.js node_modules/
push/%:
git push origin master:$(@F)
node_modules/:
npm install .
clean:
rm -rf ./node_modules/
docker-compose build --no-cache