Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Jun 6, 2020
1 parent 70fedcc commit e7ced87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,40 @@ executors:
- image: circleci/golang:1.14
working_directory: /go/src/github.com/lacework/go-sdk


jobs:
unit-test:
executor: go-executor
steps:
- checkout
- run: make prepare
- run: make lint
- run: make test
- run: make fmt-check
- run: make imports-check
build-cli:
executor: go-executor
steps:
- checkout
- run: make prepare
- run: make build-cli-cross-platform
- persist_to_workspace:
root: bin
paths:
- lacework-cli-*
integration-test:
executor: go-executor
steps:
- checkout
- run: make prepare
- run: make integration
- attach_workspace:
at: bin
- run: make integration-only

workflows:
build-and-test:
jobs:
- unit-test
- build-cli
- hold:
type: approval
- integration-test:
requires:
- unit-test
- build-cli
- integration-test:
requires:
- hold
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ prepare: install-tools go-vendor
test:
go test -v -cover -coverprofile=$(COVERAGEOUT) $(shell go list ./... | grep -v integration)

integration: build-cli-cross-platform
integration: build-cli-cross-platform integratoin-only

integration-only:
PATH=$(PWD)/bin:${PATH} go test -v github.com/lacework/go-sdk/integration

coverage: test
Expand Down

0 comments on commit e7ced87

Please sign in to comment.