diff --git a/.drone/drone.yml b/.drone/drone.yml new file mode 100644 index 0000000..757f2bf --- /dev/null +++ b/.drone/drone.yml @@ -0,0 +1,42 @@ +kind: pipeline +type: docker +name: linux-amd64 + +platform: + arch: amd64 + os: linux + +steps: +- name: test + image: docker.io/drycc/go-dev + pull: if-not-exists + privileged: true + commands: + - make bootstrap test + environment: + VERSION: ${DRONE_TAG:-latest}-linux-amd64 + DEV_REGISTRY: ${DEV_REGISTRY:-docker.io} + DRYCC_REGISTRY: ${DRYCC_REGISTRY:-docker.io} + when: + event: + - push + - tag + - pull_request + +- name: codecov + image: docker.io/drycc/go-dev + pull: if-not-exists + commands: + - curl -s https://codecov.io/bash | bash + environment: + CODECOV_TOKEN: + from_secret: codecov_token + when: + status: + - success + +trigger: + event: + - push + - tag + - pull_request diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bf6d888..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go -sudo: required -services: - - docker -script: - - make bootstrap - - make test -notifications: - slack: - rooms: - - drycc:xKmLlmJR4hfRAgVIOwdpAoC9#drycc -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index e4d4538..12ce462 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Drycc Pkg -[![Build Status](https://travis-ci.org/drycc/pkg.svg?branch=main)](https://travis-ci.org/drycc/pkg) +[![Build Status](https://drone.drycc.cc/api/badges/drycc/pkg/status.svg)](https://drone.drycc.cc/drycc/pkg) [![codecov](https://codecov.io/gh/drycc/pkg/branch/main/graph/badge.svg)](https://codecov.io/gh/drycc/pkg) [![Go Report Card](https://goreportcard.com/badge/github.com/drycc/pkg)](https://goreportcard.com/report/github.com/drycc/pkg) [![GoDoc](https://godoc.org/github.com/drycc/pkg?status.svg)](https://godoc.org/github.com/drycc/pkg)