forked from Netflix/edda
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (34 loc) · 1.28 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
43
44
# 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 clean coverage license
build:
$(SBT) clean test checkLicenseHeaders
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
$(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
# 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
license:
$(SBT) formatLicenseHeaders
test:
$(SBT) test
war:
$(SBT) checkLicenseHeaders package