Jerry 5 лет назад
Родитель
Сommit
9519d61e36
2 измененных файлов с 9 добавлено и 10 удалено
  1. 6 7
      .drone.yml
  2. 3 3
      README.md

+ 6 - 7
.drone.yml

@@ -7,6 +7,12 @@ platform:
   arch: amd64
 
 steps:
+  - name: mysql
+    image: mysql
+    environment:
+      MYSQL_ROOT_PASSWORD: "root"
+      MYSQL_DATABASE: "gopay"
+
   - name: test
     image: golang:1.13
     environment:
@@ -26,10 +32,3 @@ trigger:
     - push
     - pull_request
     - tag
-
-services:
-  - name: mysql
-    image: mysql
-    environment:
-      MYSQL_ROOT_PASSWORD: "root"
-      MYSQL_DATABASE: "gopay"

+ 3 - 3
README.md

@@ -7,9 +7,9 @@ QQ、微信、支付宝的Golang版本SDK
 
 [![Golang](https://img.shields.io/badge/golang-1.13+-brightgreen.svg)](https://golang.google.cn)
 [![GoDoc](https://img.shields.io/badge/doc-go.dev-informational.svg)](https://pkg.go.dev/github.com/iGoogle-ink/gopay)
-[![Drone with branch](https://img.shields.io/drone/build/iGoogle-ink/gopay/master)](https://cloud.drone.io/iGoogle-ink/gopay)
-[![GitHub release ](https://img.shields.io/github/v/release/iGoogle-ink/gopay)](https://github.com/iGoogle-ink/gopay/releases)
-![License](https://img.shields.io/github/license/iGoogle-ink/gopay)
+[![Drone CI](https://cloud.drone.io/api/badges/iGoogle-ink/gopay/status.svg)](https://cloud.drone.io/iGoogle-ink/gopay)
+[![GitHub Release](https://img.shields.io/github/v/release/iGoogle-ink/gopay)](https://github.com/iGoogle-ink/gopay/releases)
+[![License](https://img.shields.io/github/license/iGoogle-ink/gopay)](https://www.apache.org/licenses/LICENSE-2.0)
 
 # 一、安装