Update the unit test and move integration test under test folder. Update retry logic by switching to AWS's default retry. Signed-off-by: Tao Jiang <taoj@vmware.com>
92 lines
1.7 KiB
Text
92 lines
1.7 KiB
Text
---
|
|
format: hypermake.v0
|
|
|
|
name: cascade-kinesis-client
|
|
description: Kinesis Client in Go
|
|
|
|
targets:
|
|
rebuild-toolchain:
|
|
description: build toolchain image
|
|
watches:
|
|
- support/docker/toolchain
|
|
build: support/docker/toolchain
|
|
|
|
toolchain:
|
|
description: placeholder for additional toolchain dependencies
|
|
|
|
deps:
|
|
description: download dependencies to local cache
|
|
after:
|
|
- toolchain
|
|
watches:
|
|
- go.mod
|
|
cmds:
|
|
- export GO111MODULE=on
|
|
- go mod download
|
|
- go mod vendor
|
|
- go mod tidy
|
|
|
|
build:
|
|
description: build source code
|
|
after:
|
|
- 'build-*'
|
|
|
|
test:
|
|
description: run unit tests
|
|
after:
|
|
- deps
|
|
- check
|
|
always: true
|
|
cmds:
|
|
- ./support/scripts/test.sh
|
|
|
|
ci:
|
|
description: run CI tests
|
|
after:
|
|
- deps
|
|
cmds:
|
|
- ./support/scripts/ci.sh
|
|
|
|
checkfmt:
|
|
description: check code format
|
|
after:
|
|
- toolchain
|
|
watches:
|
|
- support/scripts/check.sh
|
|
always: true
|
|
cmds:
|
|
- ./support/scripts/check.sh fmt
|
|
|
|
lint:
|
|
description: run lint to check code
|
|
after:
|
|
- toolchain
|
|
watches:
|
|
- support/scripts/check.sh
|
|
always: true
|
|
cmds:
|
|
- ./support/scripts/check.sh lint
|
|
|
|
scanast:
|
|
description: run Go AST security scan
|
|
after:
|
|
- toolchain
|
|
watches:
|
|
- '**/**/*.go'
|
|
- './support/scripts/check.sh'
|
|
cmds:
|
|
- ./support/scripts/check.sh scanast
|
|
|
|
check:
|
|
description: run all code checks
|
|
after:
|
|
- checkfmt
|
|
- lint
|
|
- scanast
|
|
|
|
settings:
|
|
default-targets:
|
|
- test
|
|
docker:
|
|
image: 'vmware/go-kcl-toolchain:0.1.2'
|
|
src-volume: /go/src/github.com/vmware/vmware-go-kcl
|