fix: replace travis with drone

This commit is contained in:
Markus Pesch 2020-06-10 21:16:50 +02:00
parent a49546bd6d
commit 7e018280fb
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
3 changed files with 26 additions and 40 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
kind: pipeline
type: docker
name: amd64
steps:
- name: build-linux-amd64
image: docker.io/volkerraschek/build-image:latest
commands:
- make bin/linux/amd64/flucky
when:
event:
- push
- pull_request
- tag
steps:
- name: test-unit
image: docker.io/volkerraschek/build-image:latest
commands:
- make test/unit
when:
event:
- push
- pull_request
- tag

View File

@ -1,36 +0,0 @@
language: go
services:
- docker
jobs:
include:
- name: build-linux-amd64
stage: build
script: make container-run/bin/linux/amd64/flucky
# - name: build-linux-arm5
# stage: build
# script: make container-run/bin/linux/arm/5/flucky
# - name: build-linux-arm7
# stage: build
# script: make container-run/bin/linux/arm/7/flucky
- name: test-linux-amd64
stage: test
script: make container-run/test/unit
after_script: bash <(curl -s https://codecov.io/bash)
- name: deploy-container-amd64
stage: deploy
script: make container-image/push/amd64
branches:
only:
- master
notifications:
email:
on_success: change
on_failure: change

View File

@ -1,9 +1,6 @@
# flucky # flucky
[![Build Status](https://travis-ci.com/volker-raschek/flucky.svg?branch=master)](https://travis-ci.com/volker-raschek/flucky) [![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/flucky/status.svg)](https://drone.cryptic.systems/volker.raschek/flucky)
[![codecov](https://codecov.io/gh/volker-raschek/flucky/branch/master/graph/badge.svg)](https://codecov.io/gh/volker-raschek/flucky)
[![Go Report Card](https://goreportcard.com/badge/github.com/volker-raschek/flucky)](https://goreportcard.com/report/github.com/volker-raschek/flucky)
[![GoDoc Reference](https://godoc.org/github.com/volker-raschek/flucky?status.svg)](http://godoc.org/github.com/volker-raschek/flucky)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/flucky)](https://hub.docker.com/r/volkerraschek/flucky) [![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/flucky)](https://hub.docker.com/r/volkerraschek/flucky)
Flucky is a lightweight program written in go for reading data from sensors, for Flucky is a lightweight program written in go for reading data from sensors, for