forked from wfleming/codeclimate-shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 758 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 758 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
30
.PHONY: build
IMAGE_NAME ?= codeclimate/codeclimate-shellcheck
data/env.yml:
git submodule init
git submodule update
./data/prepare.rb
build:
docker build \
--tag $(IMAGE_NAME)-build \
--file $(PWD)/docker/Build.plan .
.local/bin/codeclimate-shellcheck: build
docker run --rm \
--volume $(PWD)/.local/bin:/root/.local/bin \
--volume $(PWD)/.local/.stack:/root/.stack \
--volume $(PWD)/.local/.stack-work:/home/app/.stack-work \
$(IMAGE_NAME)-build stack install
compress: .local/bin/codeclimate-shellcheck
docker run \
--volume $(PWD)/.local/bin:/data \
lalyos/upx codeclimate-shellcheck
image: .local/bin/codeclimate-shellcheck data/env.yml
docker build \
--tag $(IMAGE_NAME) \
--file $(PWD)/docker/Release.plan .