From a11514913a69d0ba0157507a78fc334abee40fd2 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 | 13 +++++++++++++ Makefile | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..14db946 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +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 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=./... ./...