Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit e20b442

Browse files
author
Vincent Demeester
authored
Merge pull request #208 from mat007/fix-makefile
Fix makefile
2 parents 9b20eb2 + 29a3698 commit e20b442

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ pipeline {
7474
sh 'make -f docker.Makefile gradle-test'
7575
}
7676
}
77+
post {
78+
always {
79+
deleteDir()
80+
}
81+
}
7782
}
7883
stage("Test Linux") {
7984
agent {

docker.Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ build_dev_image:
2121
shell: build_dev_image
2222
docker run -ti --rm $(IMAGE_NAME)-dev bash
2323

24+
bin/$(BIN_NAME)-linux: create_bin
25+
docker build --target=$(BIN_NAME) -t $(IMAGE_NAME)-bin $(IMAGE_BUILD_ARGS) .
26+
$(eval containerID=$(shell docker create $(IMAGE_NAME)-bin noop))
27+
docker cp $(containerID):$(PKG_PATH)/bin/$(BIN_NAME) $@
28+
docker rm $(containerID)
29+
@chmod +x $@
30+
2431
cross: create_bin
2532
docker build --target=$* -t $(IMAGE_NAME)-cross $(IMAGE_BUILD_ARGS) .
2633
$(eval containerID=$(shell docker create $(IMAGE_NAME)-cross noop))
@@ -67,7 +74,7 @@ coverage: build_dev_image
6774
docker cp $(containerID):$(PKG_PATH)/_build/cov/ ./_build/ci-cov
6875
docker rm $(containerID)
6976

70-
gradle-test: cross
77+
gradle-test: bin/$(BIN_NAME)-linux
7178
docker build -t $(IMAGE_NAME)-bin -f Dockerfile.gradle .
7279
docker run --rm $(IMAGE_NAME)-bin bash -c "./gradlew --stacktrace build && cd example && gradle renderIt"
7380

0 commit comments

Comments
 (0)