This commit is contained in:
parent
b5d5e4bd64
commit
b8aef52913
23
.drone.yml
Normal file
23
.drone.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: generate_tags
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- echo -n "${DRONE_BRANCH}-$(date +'%Y%m%d%H%M%S')-${DRONE_COMMIT:0:10}, latest" > .tags
|
||||||
|
- name: unit test
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- make tests_unit
|
||||||
|
|
||||||
|
- name: integration test
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- make tests_integration
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- cron
|
||||||
|
cron:
|
||||||
|
- integration-test
|
1
Makefile
1
Makefile
@ -29,6 +29,5 @@ docker_build_release_latest:
|
|||||||
tests_integration:
|
tests_integration:
|
||||||
go test -v -tags=integration -coverpkg=./... ./metadata
|
go test -v -tags=integration -coverpkg=./... ./metadata
|
||||||
|
|
||||||
|
|
||||||
tests_unit:
|
tests_unit:
|
||||||
SET_TEST=set_val go test -v -coverpkg=./... ./...
|
SET_TEST=set_val go test -v -coverpkg=./... ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user