Skip to content

Commit

Permalink
separate make cmd for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed May 1, 2018
1 parent 59db9ad commit a75961e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all deps test
.PHONY: all deps test integration-test-ci

all: deps test integration-test

Expand All @@ -15,3 +15,6 @@ integration-test:
AMQP_DSN="amqp://guest:guest@`docker-compose port rabbit 5672`/" \
go test -v -cover integration/rabbus_integration_test.go -bench .
@docker-compose down -v

integration-test-ci:
@go test -v -race -cover integration/rabbus_integration_test.go -bench .
5 changes: 4 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ machine:
environment:
IMPORT_PATH: "/home/ubuntu/.go_workspace/src/github.com/rafaeljesus"
APP_PATH: "$IMPORT_PATH/rabbus"
AMQP_DSN: "amqp://localhost:5672"
services:
- rabbitmq-server

dependencies:
pre:
Expand All @@ -13,4 +16,4 @@ dependencies:

test:
override:
- cd "$APP_PATH" && make test && make integration-test
- cd "$APP_PATH" && make test && make integration-test-ci

0 comments on commit a75961e

Please sign in to comment.