Skip to content

Commit

Permalink
Adapting targets to new structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviof committed Sep 22, 2019
1 parent 442fd71 commit de89c3a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ bootstrap:
GO111MODULE=on go mod vendor

build: clean
go build -v -o $(BUILD_DIR)/$(APP) .
go build -v -o $(BUILD_DIR)/$(APP) cmd/$(APP)/*

install: build
go install cmd/$(APP)/*

clean:
rm -rf $(BUILD_DIR) > /dev/null

clean-vendor:
rm -rf ./vendor > /dev/null

test:
go test -failfast -race -coverprofile=coverage.txt -covermode=atomic -cover -v .
test: test-unit

install: build
go install .
test-unit:
go test -failfast -race -coverprofile=coverage.txt -covermode=atomic -cover -v pkg/$(APP)/*

codecov:
mkdir .ci || true
Expand Down

0 comments on commit de89c3a

Please sign in to comment.