Skip to content

Commit f97ba50

Browse files
committed
Merge pull request #15 from codeclimate/will/makefile
Add Makefile
2 parents 81a5bfc + fd5ea8d commit f97ba50

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.PHONY: image test
2+
3+
IMAGE_NAME ?= codeclimate/codeclimate-bundler-audit
4+
5+
image:
6+
docker build --rm -t $(IMAGE_NAME) .
7+
8+
test: image
9+
docker run --rm $(IMAGE_NAME) bundle exec rake

circle.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ machine:
88
CODECLIMATE_DOCKER_REGISTRY_USERNAME: circleci
99
CODECLIMATE_DOCKER_REGISTRY_EMAIL: [email protected]
1010

11+
dependencies:
12+
override: #noop
13+
1114
test:
1215
override:
13-
- bundle exec rake
14-
- docker build -t=$PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM .
16+
- IMAGE_NAME="$PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM" make test
1517

1618
deployment:
1719
registry:

0 commit comments

Comments
 (0)