Skip to content
Permalink
Browse files

CI update

  • Loading branch information
Depado committed Oct 14, 2019
1 parent d2f3a0a commit 0d5820738216b0a92edafb156b80d373820a6977
Showing with 39 additions and 11 deletions.
  1. +36 −9 .drone.yml
  2. +1 −2 README.md
  3. +2 −0 go.mod
@@ -1,24 +1,51 @@
---
kind: pipeline
name: default
type: docker

steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags

- name: test
image: golang:latest
image: golang:1.13.1
volumes:
- name: deps
path: /go
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic
environment:
GO111MODULE: "on"

- name: linter
image: golang:1.13.1
volumes:
- name: deps
path: /go
commands:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.20.0
- ./bin/golangci-lint run

- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov_token
files:
- coverage.txt
- coverage.txt

- name: telegram
image: appleboy/drone-telegram
settings:
to: 790376882
format: markdown
token:
from_secret: telegram_token
message: >
*{{repo.name}}*
[Build {{build.number}}]({{build.link}}) by {{commit.author}} {{#success build.status}}succeeded{{else}}failed{{/success}} in {{buildtime build.started}}
`{{truncate commit.sha 8}}`: "{{commit.message}}"
when:
status:
- success
- failure

volumes:
- name: deps
host:
path: /var/lib/cache/godeps/
@@ -2,8 +2,7 @@

[![forthebadge](https://forthebadge.com/images/badges/made-with-go.svg)](https://forthebadge.com)[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)

![Go Version](https://img.shields.io/badge/go-1.10-brightgreen.svg)
![Go Version](https://img.shields.io/badge/go-1.11-brightgreen.svg)
![Go Version](https://img.shields.io/badge/go-1.13-brightgreen.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/Depado/bfchroma)](https://goreportcard.com/report/github.com/Depado/bfchroma)
[![Build Status](https://drone.depado.eu/api/badges/Depado/bfchroma/status.svg)](https://drone.depado.eu/Depado/bfchroma)
[![codecov](https://codecov.io/gh/Depado/bfchroma/branch/master/graph/badge.svg)](https://codecov.io/gh/Depado/bfchroma)
2 go.mod
@@ -1,5 +1,7 @@
module github.com/Depado/bfchroma

go 1.13

require (
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 // indirect
github.com/alecthomas/chroma v0.6.0

0 comments on commit 0d58207

Please sign in to comment.
You can’t perform that action at this time.