3 Star 18 Fork 3

Gitee 极速下载 / Hermes-Document

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hashicorp-forge/hermes
克隆/下载
Makefile 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
Anubhav Mishra 提交于 2023-02-09 15:48 . Initial work for CI (#22)
.PHONY: default
default: help
.PHONY: build
build: web/build
rm -f ./hermes
CGO_ENABLED=0 go build -o ./hermes ./cmd/hermes
.PHONY: bin
bin:
CGO_ENABLED=0 go build -o ./hermes ./cmd/hermes
.PHONY: bin/linux
bin/linux: # bin creates hermes binary for linux
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./hermes ./cmd/hermes
.PHONY: dev
dev: ## One command to start a dev environment
dev: docker/postgres/start
$(MAKE) bin && ($(MAKE) run &) && $(MAKE) web/run && fg
.PHONY: docker/postgres/clear
docker/postgres/clear: ## Stop and clear data for PostgreSQL in Docker
docker-compose down -v
.PHONY: docker/postgres/start
docker/postgres/start: ## Start PostgreSQL in Docker
docker-compose up -d && sleep 1
.PHONY: docker/postgres/stop
docker/postgres/stop: ## Stop PostgreSQL in Docker
docker-compose down
.PHONY: go/build
go/build: ## Run Go build
CGO_ENABLED=0 go build -o ./hermes ./cmd/hermes
.PHONY: go/test
go/test: ## Run Go test
go test ./...
.PHONY: go/test/with-docker-postgres
go/test/with-docker-postgres: docker/postgres/start
HERMES_TEST_POSTGRESQL_DSN="host=localhost user=postgres password=postgres port=5432" \
go test -count=1 -v ./...
.PHONY: help
help: ## Print this help
@echo "Usage: make <target>"
@echo
@echo "Targets:"
@egrep '^(.+)\:\ ##\ (.+)' $(MAKEFILE_LIST) | column -t -c 2 -s ':#'
.PHONY: run
run:
./hermes server -config=config.hcl
.PHONY: test
test:
go test ./...
.PHONY: web/build
web/build:
cd web; \
yarn install; \
rm -rf dist/; \
yarn build;
.PHONY: web/test
web/test: ## Run web test
cd web; \
yarn test:ember;
.PHONY: web/install-deps
web/install-deps: ## Install web application dependencies
cd web \
&& yarn install
.PHONY: web/run
web/run: ## Run web application while proxying backend requests
web/run: web/install-deps
cd web \
&& yarn start:with-proxy
web/set-yarn-version: ## Set yarn version
cd web \
&& yarn set version 3.3.0
1
https://gitee.com/mirrors/Hermes-Document.git
git@gitee.com:mirrors/Hermes-Document.git
mirrors
Hermes-Document
Hermes-Document
main

搜索帮助