Skip to content

Commit 08f8de8

Browse files
Expose docs generation through make (codeclimate#95)
1 parent 8479b37 commit 08f8de8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN gem install bundler && \
88
bundle install -j 4 && \
99
rm -fr /usr/share/ri
1010

11+
RUN apk --update add git
12+
1113
RUN adduser -u 9000 -D app
1214
COPY . /usr/src/app
1315
RUN chown -R app:app /usr/src/app

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: image test
1+
.PHONY: image test docs
22

33
IMAGE_NAME ?= codeclimate/codeclimate-rubocop
44

@@ -7,3 +7,10 @@ image:
77

88
test: image
99
docker run --rm $(IMAGE_NAME) sh -c "cd /usr/src/app && bundle exec rake"
10+
11+
docs: image
12+
docker run --rm \
13+
--user root \
14+
--workdir /usr/src/app \
15+
--volume $(PWD):/usr/src/app \
16+
$(IMAGE_NAME) sh -c "bundle exec rake docs:scrape"

0 commit comments

Comments
 (0)