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