-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.09 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
# check for build/shipkit and clone if not there, this should come first
SHIPKIT_DIR = build/shipkit
$(shell [ ! -e $(SHIPKIT_DIR) ] && git clone -b v2.0.1 https://github.com/yakworks/shipkit.git $(SHIPKIT_DIR) >/dev/null 2>&1)
# Shipkit.make first, which does all the lifting to create makefile.env for the BUILD_VARS
include $(SHIPKIT_DIR)/Shipkit.make
include $(SHIPKIT_DIR)/makefiles/vault.make
include $(SHIPKIT_MAKEFILES)/git-tools.make
include $(SHIPKIT_MAKEFILES)/gradle-tools.make
include $(SHIPKIT_MAKEFILES)/ship-version.make
include $(SHIPKIT_MAKEFILES)/circle.make
check:
./gradlew check
# should run vault.decrypt before this,
# sets up github, kubernetes and docker login
ship.authorize: git.config-bot-user
$(logr.done)
publish.gradle-lib:
if [ "$(IS_SNAPSHOT)" ]; then
$(logr) "SNAPSHOT so not publishing"
else
$(logr) "publishing to gradle portal"
$(gradlew) publishPlugins
fi
ifdef PUBLISHABLE_BRANCH_OR_DRY_RUN
ship.release: build publish.gradle-lib
$(logr.done)
else
ship.release:
$(logr.done) "not on a RELEASABLE_BRANCH, nothing to do"
endif # end RELEASABLE_BRANCH