mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
[ci-ci] enable CI (#39)
This commit is contained in:
parent
a576d1f5d3
commit
be97f764f5
3 changed files with 30 additions and 0 deletions
22
.travis.yml
Normal file
22
.travis.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.12.x
|
||||||
|
|
||||||
|
install: make
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- GO111MODULE=off go get -v golang.org/x/lint/golint
|
||||||
|
- GO111MODULE=off go get -u github.com/kisielk/errcheck
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make check_all
|
||||||
|
- git diff --exit-code
|
||||||
|
- make test_full
|
||||||
|
- make victoria-metrics
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
5
Makefile
5
Makefile
|
@ -50,10 +50,15 @@ errcheck: install-errcheck
|
||||||
install-errcheck:
|
install-errcheck:
|
||||||
which errcheck || GO111MODULE=off go get -u github.com/kisielk/errcheck
|
which errcheck || GO111MODULE=off go get -u github.com/kisielk/errcheck
|
||||||
|
|
||||||
|
check_all: fmt vet lint errcheck
|
||||||
|
|
||||||
test:
|
test:
|
||||||
GO111MODULE=on go test -mod=vendor ./lib/...
|
GO111MODULE=on go test -mod=vendor ./lib/...
|
||||||
GO111MODULE=on go test -mod=vendor ./app/...
|
GO111MODULE=on go test -mod=vendor ./app/...
|
||||||
|
|
||||||
|
test_full:
|
||||||
|
GO111MODULE=on go test -mod=vendor -coverprofile=coverage.txt -covermode=atomic ./lib/... ./app/...
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
GO111MODULE=on go test -mod=vendor -bench=. ./lib/...
|
GO111MODULE=on go test -mod=vendor -bench=. ./lib/...
|
||||||
GO111MODULE=on go test -mod=vendor -bench=. ./app/...
|
GO111MODULE=on go test -mod=vendor -bench=. ./app/...
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
[![Latest Release](https://img.shields.io/github/release/VictoriaMetrics/VictoriaMetrics.svg?style=flat-square)](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest)
|
[![Latest Release](https://img.shields.io/github/release/VictoriaMetrics/VictoriaMetrics.svg?style=flat-square)](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/latest)
|
||||||
[![Go Report](https://goreportcard.com/badge/github.com/VictoriaMetrics/VictoriaMetrics)](https://goreportcard.com/report/github.com/VictoriaMetrics/VictoriaMetrics)
|
[![Go Report](https://goreportcard.com/badge/github.com/VictoriaMetrics/VictoriaMetrics)](https://goreportcard.com/report/github.com/VictoriaMetrics/VictoriaMetrics)
|
||||||
|
[![Build Status](https://travis-ci.org/VictoriaMetrics/VictoriaMetrics.svg?branch=master)](https://travis-ci.org/VictoriaMetrics/VictoriaMetrics)
|
||||||
|
[![codecov](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics)
|
||||||
|
|
||||||
|
|
||||||
<img text-align="center" alt="Victoria Metrics" src="logo.png">
|
<img text-align="center" alt="Victoria Metrics" src="logo.png">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue