-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (28 loc) · 740 Bytes
/
Copy pathmakefile
File metadata and controls
35 lines (28 loc) · 740 Bytes
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
port = 8000
tester_version = 1.1.0
npm := npm --prefix .
npm_bin = $(shell $(npm) bin)
integration_test = $(npm_bin)/take-home-integration-test
out_file = bin/weathertracker
log_file = integration-test.log
main_file = src/github.com/capitalone/code-test-go/main.go
export GOPATH := $(shell pwd)
$(out_file):
go build -o $(out_file) $(main_file)
$(integration_test):
$(npm) install --no-save ./assets/c1-code-test-take-home-tester-$(tester_version).tgz
clean:
rm -f $(out_file)
run:
go run $(main_file)
test: $(integration_test) clean $(out_file)
node --no-warnings \
$(integration_test) \
features \
--check-new \
--command "$(out_file)" \
--port $(port) \
--out-file $(log_file) \
-- \
--tags 'not @skip'
.PHONY: test