2018-05-07 05:32:18 -05:00
|
|
|
-include local/Makefile
|
|
|
|
|
2016-04-25 11:44:26 -05:00
|
|
|
all: deps build
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
deps-go:
|
2016-04-25 11:44:26 -05:00
|
|
|
go run build.go setup
|
2016-10-11 01:51:44 -05:00
|
|
|
|
|
|
|
deps-js:
|
2017-02-13 08:26:10 -06:00
|
|
|
yarn install --pure-lockfile --no-progress
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2017-02-16 02:10:55 -06:00
|
|
|
deps: deps-js
|
2016-10-11 01:51:44 -05:00
|
|
|
|
|
|
|
build-go:
|
2016-04-25 11:44:26 -05:00
|
|
|
go run build.go build
|
2016-10-11 01:51:44 -05:00
|
|
|
|
2018-03-06 16:59:45 -06:00
|
|
|
build-server:
|
|
|
|
go run build.go build-server
|
|
|
|
|
|
|
|
build-cli:
|
|
|
|
go run build.go build-cli
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
build-js:
|
2018-03-06 16:59:45 -06:00
|
|
|
yarn run build
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
build: build-go build-js
|
|
|
|
|
2018-08-02 10:42:28 -05:00
|
|
|
build-docker-dev:
|
|
|
|
@echo "\033[92mInfo:\033[0m the frontend code is expected to be built already."
|
|
|
|
go run build.go -goos linux -pkg-arch amd64 ${OPT} build package-only latest
|
|
|
|
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
|
|
|
|
cd packaging/docker && docker build --tag grafana/grafana:dev .
|
|
|
|
|
2018-04-20 13:28:52 -05:00
|
|
|
build-docker-full:
|
|
|
|
docker build --tag grafana/grafana:dev .
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
test-go:
|
2016-09-15 06:02:16 -05:00
|
|
|
go test -v ./pkg/...
|
2016-10-11 01:51:44 -05:00
|
|
|
|
|
|
|
test-js:
|
2018-03-06 16:59:45 -06:00
|
|
|
yarn test
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
test: test-go test-js
|
|
|
|
|
2016-04-25 11:44:26 -05:00
|
|
|
run:
|
|
|
|
./bin/grafana-server
|