blob: 61be9bc5620cade03a627d736b8eed32b26ea20d [file] [log] [blame]
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
projdir := $(patsubst %/,%,$(dir $(mkfile_path)))
dev: devserver --app-dir $(projdir)/frontend/appengine -A luci-milo-dev -- --host --port 8082 --admin_port 7999 --log_level debug
# This is intentionally not dependent on the others below to avoid
# asking for user confirmation multiple times.
up: up-all
up-all: upload -A luci-milo --app-dir $(projdir)/frontend/appengine default pubsub
up-default: upload -A luci-milo --app-dir $(projdir)/frontend/appengine default
up-pubsub: upload -A luci-milo --app-dir $(projdir)/frontend/appengine pubsub
up-dev: upload -A luci-milo-dev --app-dir $(projdir)/frontend/appengine default pubsub
up-dev-default: upload -A luci-milo-dev --app-dir $(projdir)/frontend/appengine default
switch: switch -A luci-milo --app-dir $(projdir)/frontend/appengine
switch-dev: switch -A luci-milo-dev --app-dir $(projdir)/frontend/appengine
go test ./...
train: gen
go test ./... -test.generate
go generate ./...
versions-cleanup-dev: cleanup -A luci-milo-dev --app-dir $(projdir)/frontend/appengine
versions-cleanup: cleanup -A luci-milo --app-dir $(projdir)/frontend/appengine