From 42582719a5f7ffd725f59bf938d83cc79df2630d Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Mon, 30 Nov 2020 19:26:07 +0100 Subject: [PATCH] Add go.mod, update CI and badges --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ .travis.yml | 4 ---- README.md | 2 +- go.mod | 3 +++ 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml create mode 100644 go.mod diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..238e5f9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.15 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Test + run: go test -v -cover . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7346e0c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: go -go: - - "1.11" -script: go test -cover . diff --git a/README.md b/README.md index 475dd85..9ae2655 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # piecewiselinear -[![](https://godoc.org/github.com/sgreben/piecewiselinear?status.svg)](http://godoc.org/github.com/sgreben/piecewiselinear) [![](https://goreportcard.com/badge/github.com/sgreben/piecewiselinear/goreportcard)](https://goreportcard.com/report/github.com/sgreben/piecewiselinear) [![coverage](http://gocover.io/_badge/github.com/sgreben/piecewiselinear)](https://gocover.io/github.com/sgreben/piecewiselinear) [![Build Status](https://travis-ci.org/sgreben/piecewiselinear.svg?branch=master)](https://travis-ci.org/sgreben/piecewiselinear) +[![](https://godoc.org/github.com/sgreben/piecewiselinear?status.svg)](http://godoc.org/github.com/sgreben/piecewiselinear) [![](https://goreportcard.com/badge/github.com/sgreben/piecewiselinear/goreportcard)](https://goreportcard.com/report/github.com/sgreben/piecewiselinear) [![gocover.io](https://gocover.io/_badge/github.com/sgreben/piecewiselinear)](https://gocover.io/github.com/sgreben/piecewiselinear) [![Build](https://github.com/sgreben/piecewiselinear/workflows/Build/badge.svg)](https://github.com/sgreben/piecewiselinear/actions?query=workflow%3ABuild) A tiny library for linear interpolation. `O(log(N))` per evaluation for `N` control points. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..81fe0c1 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/sgreben/piecewiselinear + +go 1.15