-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 737 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 737 Bytes
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
TMP := ''
IMAGE := heroku/heroku:16-build
BASH_COMMAND := /bin/bash
GO_BUCKET_URL := file:///buildpack/test/assets
.PHONY: test shell quick publish docker test-assets
.DEFAULT: test
.NOTPARALLEL: docker test-assets
test: BASH_COMMAND := test/run
test: docker
shell: docker
quick: BASH_COMMAND := test/quick; bash
quick: docker
publish:
bin/publish heroku/go
docker: test-assets
$(eval TMP := $(shell bin/copy true))
@echo "Running docker ($(IMAGE)) with /buildpack=$(TMP) ..."
@docker run -v $(TMP):/buildpack:ro --rm -it -e "GITHUB_TOKEN=$(GITHUB_TOKEN)" -e "GO_BUCKET_URL=$(GO_BUCKET_URL)" $(IMAGE) bash -c "cd /buildpack; $(BASH_COMMAND)"
@rm -rf $(TMP)
test-assets:
@echo "Setting up test assets"
@bin/fetch-test-assets