-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
43 lines (34 loc) · 1.36 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
34
35
36
37
38
39
40
41
42
# Map stdin to /dev/null to avoid interactive prompts if there is some failure related to the
# build script.
ifeq (${TRAVIS_SCALA_VERSION},)
SBT := cat /dev/null | project/sbt
else
SBT := cat /dev/null | project/sbt ++${TRAVIS_SCALA_VERSION}
endif
.PHONY: build snapshot release clean coverage format
build:
$(SBT) clean test checkLicenseHeaders scalafmtCheckAll
snapshot:
# Travis uses a depth when fetching git data so the tags needed for versioning may not
# be available unless we explicitly fetch them
git fetch --unshallow --tags
$(SBT) storeBintrayCredentials
$(SBT) clean test checkLicenseHeaders publish
release:
# Travis uses a depth when fetching git data so the tags needed for versioning may not
# be available unless we explicitly fetch them
git fetch --unshallow --tags
# 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
$(SBT) storeBintrayCredentials
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish bintrayRelease
clean:
$(SBT) clean
coverage:
$(SBT) clean coverage test coverageReport
$(SBT) coverageAggregate
format:
$(SBT) formatLicenseHeaders scalafmtAll