forked from paketo-buildpacks/java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 958 Bytes
/
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
VERSION?=$(shell git describe --tags --abbrev=0 | cut -c2- )
export BP_UNDER_TEST ?= "paketobuildpacks/java:$(VERSION)"
clean:
rm -fr target
rm -f *.cnb
mvn clean -f integration/pom.xml
create-package:
create-package --include-dependencies --destination ./target --version "${VERSION}"
cp package.toml ./target/package.toml
echo "[buildpack]" >> ./target/package.toml
echo "uri = \"./\"" >> ./target/package.toml
echo "" >> ./target/package.toml
echo "[platform]" >> ./target/package.toml
echo "os = \"linux\"" >> ./target/package.toml
package: create-package
pack buildpack package ${BP_UNDER_TEST} --format=image --config ./target/package.toml
integration: samples
go test -v -count=1 -timeout=20m ./integration
samples:
test -d integration/samples && git -C integration/samples pull || git clone https://github.com/paketo-buildpacks/samples integration/samples
.PHONY: integration pre-integration package create-package clean samples