first commit
This commit is contained in:
commit
7902798c57
4
.bumpversion.cfg
Normal file
4
.bumpversion.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[bumpversion]
|
||||||
|
current_version = 0.0.0
|
||||||
|
commit = True
|
||||||
|
tag = True
|
19
.drone.yml
Normal file
19
.drone.yml
Normal 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
25
Makefile
Normal 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
|
5
cmd/jitsiexporter/main.go
Normal file
5
cmd/jitsiexporter/main.go
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "github.com/xsteadfastx/jitsiexporter"
|
||||||
|
|
||||||
|
func main() {}
|
1
jitsiexporter.go
Normal file
1
jitsiexporter.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package jitsiexporter
|
Loading…
Reference in New Issue
Block a user