Skip to content

Commit

Permalink
Few more CI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjacobson committed Jun 21, 2019
1 parent 083e9a7 commit 05329b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- run: chmod +x ./cc-test-reporter
- run: ./cc-test-reporter before-build
- run: make image
- run: make test
- run: make citest
- run:
name: "Upload coverage"
command: ./cc-test-reporter after-build --prefix="/usr/src/app"
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
.PHONY: image test
.PHONY: image citest test

IMAGE_NAME ?= codeclimate/codeclimate-markdownlint

image:
docker build --rm -t $(IMAGE_NAME) .

test: image
citest: image
docker run \
--name "markdownlint-${CIRCLE_WORKFLOW_ID}" \
--workdir /usr/src/app \
$(IMAGE_NAME) bundle exec rake
docker cp "markdownlint-${CIRCLE_WORKFLOW_ID}":/usr/src/app/coverage ./coverage

test: image
docker run \
--workdir /usr/src/app \
$(IMAGE_NAME) bundle exec rake
13 changes: 0 additions & 13 deletions circle.yml

This file was deleted.

0 comments on commit 05329b3

Please sign in to comment.