Skip to content

Commit 8f6fcab

Browse files
committed
Add make test task, use make in circle.yml
1 parent 64f885a commit 8f6fcab

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
.PHONY: image
1+
.PHONY: image test
22

33
IMAGE_NAME ?= codeclimate/codeclimate-eslint
44

55
image:
66
docker build --rm -t $(IMAGE_NAME) .
7+
8+
test: image
9+
docker run $(IMAGE_NAME) npm run test

Diff for: circle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ machine:
1111

1212
test:
1313
override:
14-
- docker build -t=$PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM .
14+
- IMAGE_NAME="$PRIVATE_REGISTRY/$CIRCLE_PROJECT_REPONAME:b$CIRCLE_BUILD_NUM" make test
1515

1616
deployment:
1717
registry:

0 commit comments

Comments
 (0)