-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
53 lines (41 loc) · 1.38 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
export CONFIG_PATH=./config.json
TEST_CONFIG_PATH=./config-test.json
all: get-deps build
.PHONY: help build fmt clean run test coverage check vet lint doc cfpush
help:
@echo "build - build application from sources"
@echo "lint - lint and fix application sources"
@echo "gen - generate files"
@echo "prepare - prepare project to build"
@echo "run - start application"
build: prepare
@echo "Install jsonwire-grid"
go install github.com/qa-dev/jsonwire-grid
lint:
golangci-lint run --fix
gen:
go-bindata -pkg mysql -o storage/migrations/mysql/bindata.go storage/migrations/mysql
get-deps:
go get -u github.com/jteeuwen/go-bindata/...
prepare: fmt gen
run: build
@echo "Start jsonwire-grid"
jsonwire-grid
test:
go test ./...
concurrency-test-prepare: build
@echo "Install jsonwire-grid"
go install github.com/qa-dev/jsonwire-grid/testing/webdriver-node-mock
@echo "Install webdriver-node-mock"
go install github.com/qa-dev/jsonwire-grid/testing/webdriver-mock-creator
@echo "Install webdriver-mock-creator"
go install github.com/qa-dev/jsonwire-grid/testing/webdriver-concurrency-test
@echo "Kill all running jsonwire-grid"
killall -9 jsonwire-grid &
@echo "Wait 1s"
sleep 1
@echo "Start jsonwire-grid"
CONFIG_PATH=$(TEST_CONFIG_PATH) jsonwire-grid &
concurrency-test: concurrency-test-prepare
@echo "Start webdriver-concurrency-test"
webdriver-concurrency-test