Skip to content

Commit f43721f

Browse files
authored
Merge pull request #6 from jianxiaoguo/dev
chore(CICD): use drone
2 parents a04f9df + 12b7ed2 commit f43721f

3 files changed

Lines changed: 43 additions & 14 deletions

File tree

.drone/drone.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
kind: pipeline
2+
type: docker
3+
name: linux-amd64
4+
5+
platform:
6+
arch: amd64
7+
os: linux
8+
9+
steps:
10+
- name: test
11+
image: docker.io/drycc/go-dev
12+
pull: if-not-exists
13+
privileged: true
14+
commands:
15+
- make bootstrap test
16+
environment:
17+
VERSION: ${DRONE_TAG:-latest}-linux-amd64
18+
DEV_REGISTRY: ${DEV_REGISTRY:-docker.io}
19+
DRYCC_REGISTRY: ${DRYCC_REGISTRY:-docker.io}
20+
when:
21+
event:
22+
- push
23+
- tag
24+
- pull_request
25+
26+
- name: codecov
27+
image: docker.io/drycc/go-dev
28+
pull: if-not-exists
29+
commands:
30+
- curl -s https://codecov.io/bash | bash
31+
environment:
32+
CODECOV_TOKEN:
33+
from_secret: codecov_token
34+
when:
35+
status:
36+
- success
37+
38+
trigger:
39+
event:
40+
- push
41+
- tag
42+
- pull_request

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drycc Pkg
22

3-
[![Build Status](https://travis-ci.org/drycc/pkg.svg?branch=main)](https://travis-ci.org/drycc/pkg)
3+
[![Build Status](https://drone.drycc.cc/api/badges/drycc/pkg/status.svg)](https://drone.drycc.cc/drycc/pkg)
44
[![codecov](https://codecov.io/gh/drycc/pkg/branch/main/graph/badge.svg)](https://codecov.io/gh/drycc/pkg)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/drycc/pkg)](https://goreportcard.com/report/github.com/drycc/pkg)
66
[![GoDoc](https://godoc.org/github.com/drycc/pkg?status.svg)](https://godoc.org/github.com/drycc/pkg)

0 commit comments

Comments
 (0)