Skip to content

Commit ffed03d

Browse files
committed
Add cli native image tests to 'release' make target
1 parent 29f7acb commit ffed03d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ __check_defined = \
1818

1919
__java_version_ok := $(shell java -version 2>&1|grep 1.8.0 >/dev/null; printf $$?)
2020

21-
.PHONE: check_java
21+
.PHONY: check_java
2222
check_java: ## check current java version (mostly used in other targets)
2323
ifneq ($(__java_version_ok),$(shell echo 0))
2424
$(error "Expected java 1.8")
@@ -166,10 +166,15 @@ _release-patch: ## (DEPRECATED) publishes next patch release version
166166
release: check_java ## publishes the next release with a specified VERSION
167167
@:$(call check_defined, VERSION, semantic version string - 'X.Y.Z(-rc.\d+)?')
168168

169+
# run tests
169170
./gradlew clean test integrationTest -Pversion=$(VERSION)
171+
# build and test native image
170172
./gradlew nativeImage -Pversion=$(VERSION) --info
173+
./cli-bot/build/graal/faker-bot_$(VERSION) list --verbose >/dev/null || false
174+
./cli-bot/build/graal/faker-bot_$(VERSION) lookup a --verbose >/dev/null || false
175+
# publish to sonatype and close staging repo
171176
./gradlew publishToSonatype closeSonatypeStagingRepository -Pversion=$(VERSION) --info
172-
177+
# create and push git tag
173178
git tag v$(VERSION)
174179
git push origin --tags
175180

0 commit comments

Comments
 (0)