From b8aef52913f8f4f1c328a2bdb68cda4f1ff0411a Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Mon, 23 Oct 2023 20:33:56 -0400 Subject: [PATCH] [add] drone config --- .drone.yml | 23 +++++++++++++++++++++++ Makefile | 1 - 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e059ffd --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/Makefile b/Makefile index 190657b..dedcc08 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,5 @@ docker_build_release_latest: tests_integration: go test -v -tags=integration -coverpkg=./... ./metadata - tests_unit: SET_TEST=set_val go test -v -coverpkg=./... ./...