forked from qltysh-archive/codeclimate-rubocop
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 627 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (17 loc) · 627 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: image test docs bundle
IMAGE_NAME ?= codeclimate/codeclimate-standard
image:
docker build --rm -t $(IMAGE_NAME) .
test: image
docker run --rm --tty $(IMAGE_NAME) sh -c "cd /usr/src/app && bundle install --with=test && bundle exec rake"
docs: image
docker run --rm --tty \
--user root \
--workdir /usr/src/app \
--volume $(PWD):/usr/src/app \
$(IMAGE_NAME) sh -c "apk --update add git && bundle install --with=test && bundle exec rake docs:scrape"
bundle:
docker run --rm --tty \
--entrypoint /bin/sh \
--volume $(PWD):/usr/src/app \
$(IMAGE_NAME) -c "cd /usr/src/app && bundle $(BUNDLE_ARGS)"