-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
SHELL:=/usr/bin/env bash -euo pipefail -c | ||
.DEFAULT_GOAL := help | ||
|
||
CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
### help : Prints usage information | ||
.PHONY: help | ||
help: | ||
@echo "Makefile usage:" | ||
@echo "" | ||
@sed -n 's/^###//p' < $(CURRENT_DIR)/Makefile | sort | ||
|
||
### format : Format code | ||
.PHONY: format | ||
format: | ||
@sbt scalafmt | ||
|
||
### test : Test project | ||
.PHONY: test | ||
test: | ||
@sbt test | ||
|
||
### build : Clean, build and test project | ||
.PHONY: build | ||
build: | ||
@sbt rebuild | ||
|
||
### release : Creates a release | ||
.PHONY: release | ||
deploy: build | ||
@sbt +publishSigned | ||
@sbt sonatypeReleaseAll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters