forked from Netflix/iep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Map stdin to /dev/null to avoid interactive prompts if there is some failure related to the
# build script.
SBT := cat /dev/null | project/sbt
.PHONY: build snapshot release coverage format
build:
echo "Starting build"
$(SBT) clean test checkLicenseHeaders
snapshot:
echo "Starting snapshot build"
git fetch --unshallow --tags
$(SBT) storeBintrayCredentials
$(SBT) clean test checkLicenseHeaders publish
release:
# Storing the bintray credentials needs to be done as a separate command so they will
# be available early enough for the publish task.
#
# The storeBintrayCredentials still needs to be on the subsequent command or we get:
# [error] (iep-service/*:bintrayEnsureCredentials) java.util.NoSuchElementException: None.get
echo "Starting release build"
git fetch --unshallow --tags
$(SBT) storeBintrayCredentials
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish bintrayRelease
coverage:
$(SBT) clean coverage test coverageReport
$(SBT) coverageAggregate
format:
$(SBT) formatLicenseHeaders