mirror of
https://github.com/thegeeklab/drone-template-lib.git
synced 2024-11-16 01:40:42 +00:00
commit
0e6b955d8c
38
.drone.yml
38
.drone.yml
@ -1,5 +1,6 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: testing
|
||||
|
||||
platform:
|
||||
@ -7,8 +8,33 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: environment
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go version
|
||||
- go env
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: staticcheck
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: lint
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go run golang.org/x/lint/golint -set_exit_status ./...
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
|
||||
- name: vet
|
||||
image: golang:1.12
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go vet ./...
|
||||
volumes:
|
||||
@ -16,9 +42,9 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: test
|
||||
image: golang:1.12
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go test -cover ./...
|
||||
- go test -cover -v ./...
|
||||
volumes:
|
||||
- name: gopath
|
||||
path: /go
|
||||
@ -27,8 +53,4 @@ volumes:
|
||||
- name: gopath
|
||||
temp: {}
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
- refs/tags/**
|
||||
- refs/pull/**
|
||||
...
|
||||
|
@ -1,6 +1,6 @@
|
||||
# drone-template-lib
|
||||
|
||||
[![Build Status](http://beta.drone.io/api/badges/drone/drone-template-lib/status.svg)](http://beta.drone.io/drone/drone-template-lib)
|
||||
[![Build Status](https://cloud.drone.io/api/badges/drone/drone-template-lib/status.svg)](https://cloud.drone.io/drone/drone-template-lib)
|
||||
[![Join the discussion at https://discourse.drone.io](https://img.shields.io/badge/discourse-forum-orange.svg)](https://discourse.drone.io)
|
||||
[![Drone questions at https://stackoverflow.com](https://img.shields.io/badge/drone-stackoverflow-orange.svg)](https://stackoverflow.com/questions/tagged/drone.io)
|
||||
[![Go Doc](https://godoc.org/github.com/drone/drone-template-lib?status.svg)](http://godoc.org/github.com/drone/drone-template-lib)
|
||||
|
Loading…
Reference in New Issue
Block a user