[add] drone config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2023-10-23 20:33:56 -04:00
parent b5d5e4bd64
commit b8aef52913
2 changed files with 23 additions and 1 deletions

23
.drone.yml Normal file
View 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

View File

@ -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=./... ./...