ci to own default format

This commit is contained in:
Martin/Geno 2019-06-20 10:17:57 +02:00
parent 840142fc1d
commit 49950ebf28
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 33 additions and 9 deletions

View File

@ -4,19 +4,21 @@ stages:
- test - test
before_script: before_script:
- mkdir -p /go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/ - mkdir -p "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/"
- cp -R /builds/$CI_PROJECT_PATH /go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/ - cp -R "$CI_PROJECT_DIR" "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/"
- cd /go/src/dev.sum7.eu/$CI_PROJECT_PATH - cd "/go/src/dev.sum7.eu/$CI_PROJECT_PATH"
- go get -d -t ./... - go get -d -t ./...
build-my-project: build-my-project:
stage: build stage: build
script: script:
- go install dev.sum7.eu/$CI_PROJECT_PATH - mkdir "$CI_PROJECT_DIR/bin/"
- mv /go/bin/$CI_PROJECT_NAME /builds/$CI_PROJECT_PATH - go install "dev.sum7.eu/$CI_PROJECT_PATH"
- mv "/go/bin/$CI_PROJECT_NAME" "$CI_PROJECT_DIR/bin/$CI_PROJECT_NAME"
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_NAME - "bin/$CI_PROJECT_NAME"
- config_example.toml
test-my-project: test-my-project:
stage: test stage: test
@ -26,6 +28,7 @@ test-my-project:
- ./.ci/check-gofmt - ./.ci/check-gofmt
- ./.ci/check-testfiles - ./.ci/check-testfiles
- go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt - go test $(go list ./... | grep -v /vendor/) -v -coverprofile .testCoverage.txt
- go tool cover -func=.testCoverage.txt
artifacts: artifacts:
paths: paths:
- .testCoverage.txt - .testCoverage.txt

View File

@ -1,7 +1,7 @@
# logmania # logmania
[![DroneCI](https://ci.sum7.eu/api/badges/genofire/logmania/status.svg?branch=master)](https://ci.sum7.eu/genofire/logmania)
[![CircleCI](https://circleci.com/gh/genofire/logmania/tree/master.svg?style=shield)](https://circleci.com/gh/genofire/logmania/tree/master) [![pipeline status](https://dev.sum7.eu/genofire/logmania/badges/master/pipeline.svg)](https://dev.sum7.eu/genofire/logmania/pipelines)
[![Coverage Status](https://coveralls.io/repos/github/genofire/logmania/badge.svg?branch=master)](https://coveralls.io/github/genofire/logmania?branch=master) [![coverage report](https://dev.sum7.eu/genofire/logmania/badges/master/coverage.svg)](https://dev.sum7.eu/genofire/logmania/pipelines)
[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/genofire/logmania)](https://goreportcard.com/report/dev.sum7.eu/genofire/logmania) [![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/genofire/logmania)](https://goreportcard.com/report/dev.sum7.eu/genofire/logmania)
[![GoDoc](https://godoc.org/dev.sum7.eu/genofire/logmania?status.svg)](https://godoc.org/dev.sum7.eu/genofire/logmania) [![GoDoc](https://godoc.org/dev.sum7.eu/genofire/logmania?status.svg)](https://godoc.org/dev.sum7.eu/genofire/logmania)
@ -26,6 +26,27 @@ it could replace text by regex expression
configuration live possible by bot (on input e.g. xmpp) configuration live possible by bot (on input e.g. xmpp)
## Get logmania
#### Download
Latest Build binary from ci here:
[Download All](https://dev.sum7.eu/genofire/logmania/-/jobs/artifacts/master/download/?job=build-my-project) (with config example)
[Download Binary](https://dev.sum7.eu/genofire/logmania/-/jobs/artifacts/master/raw/logmania?inline=false&job=build-my-project)
#### Build
```bash
go get -u dev.sum7.eu/genofire/logmania
```
## Configure
see `config_example.toml`
## Related Projects ## Related Projects
- [hook2xmpp](https://dev.sum7.eu/genofire/hook2xmpp) for e.g. grafana, alertmanager(prometheus), gitlab, git, circleci - [hook2xmpp](https://dev.sum7.eu/genofire/hook2xmpp) for e.g. grafana, alertmanager(prometheus), gitlab, git, circleci