first commit

This commit is contained in:
Marvin Steadfast 2020-03-27 09:17:40 +01:00
commit 7902798c57
7 changed files with 60 additions and 0 deletions

4
.bumpversion.cfg Normal file
View File

@ -0,0 +1,4 @@
[bumpversion]
current_version = 0.0.0
commit = True
tag = True

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
---
kind: pipeline
name: default
type: docker
steps:
- name: lint
image: golangci/golangci-lint:v1.23-alpine
commands:
- apk add --no-cache make
- make lint
- name: test
image: golang:1.14
commands:
- make test
- name: build
image: golang:1.14
commands:
- go get github.com/mitchellh/gox
- make build

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
.PHONY: build clean test lint dep-update
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || \
echo v0)
build:
export GOFLAGS=-mod=vendor
go generate ./...
CGO_ENABLED=0 gox -osarch="linux/amd64" -mod vendor -ldflags '-extldflags "-static" -X "main.version=${VERSION}"' github.com/xsteadfastx/jitsiexporter/cmd/jitsiexporter
clean:
rm -f jitsiexporter
test:
export GOFLAGS=-mod=vendor
go test ./...
lint:
golangci-lint run --enable-all--timeout 5m
dep-update:
go get -u ./...
go test ./...
go mod tidy
go mod vendor

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# jitsiexporter
a jitsi meet prometheus exporter

View File

@ -0,0 +1,5 @@
package main
import "github.com/xsteadfastx/jitsiexporter"
func main() {}

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/xsteadfastx/jitsiexporter
go 1.14

1
jitsiexporter.go Normal file
View File

@ -0,0 +1 @@
package jitsiexporter