mirror of
https://github.com/aljazceru/nigiri.git
synced 2025-12-17 06:14:19 +01:00
* clean * load datadir with resources and start compose * start --liquid * check if is running already * Add rpc command * Add logs and faucet commands * Add mint command * Add push command * Move state into dedicated pkg * less code for isRunning check * Add --ci flag to start command * Add NIGIRI_DATADIR env var * add update command * Update readme, makefile and goreleaser * update test gh action * skip tests * print endpoint in start command * Add a default network to docker compose file. Containers started through this docker compose file will be in this isolated network. Note: the minimum version for the docker compose file format is 3.5 which introduces `name` for networks. This file format requires a docker engine version of 17.12.0+. * add prerelease: auto * makefile: release commands * go version * use global flag --datadir for the folder * wrap datadir in variable * use single compose file & move state to internal * remove unused state keys * return err in test * docker-compose: use latest version * print endpoint of services based on --liquid flag Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
.PHONY: install clean build release dry-release cov fmt help vet test
|
|
|
|
## install: installs dependencies
|
|
install:
|
|
go mod download
|
|
go mod tidy
|
|
|
|
## clean: cleans the binary
|
|
clean:
|
|
@echo "Cleaning..."
|
|
go clean
|
|
|
|
## build: build binary
|
|
build:
|
|
chmod u+x ./scripts/build
|
|
./scripts/build
|
|
|
|
## release: build and upload binaries to Github Releases
|
|
release:
|
|
goreleaser
|
|
|
|
## dry-release: build and test goreleaser
|
|
dry-release:
|
|
goreleaser --snapshot --skip-publish --rm-dist
|
|
|
|
## help: prints this help message
|
|
help:
|
|
@echo "Usage: \n"
|
|
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
|
|
|
|
## fmt: Go Format
|
|
fmt:
|
|
@echo "Gofmt..."
|
|
@if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted"; exit 1; fi
|
|
|
|
## vet: code analysis
|
|
vet:
|
|
@echo "Vet..."
|
|
@go vet ./...
|
|
|
|
## test: runs go unit test with default values
|
|
test: clean install
|
|
@echo "Testing..."
|
|
go test -v -count=1 -race ./...
|
|
|
|
## test-ci: runs travis tests
|
|
test-ci: clean
|
|
@echo "Testing..."
|
|
go test -short -v ./...
|
|
|
|
## cov: generates coverage report
|
|
cov:
|
|
@echo "Coverage..."
|
|
go test -cover ./...
|