Move files
Added travis.yml
This commit is contained in:
parent
6796db17de
commit
cf07a154d5
3 changed files with 15 additions and 2 deletions
14
.travis.yml
Normal file
14
.travis.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
language: go
|
||||||
|
go:
|
||||||
|
- "1.10"
|
||||||
|
- tip
|
||||||
|
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- go get -t -v ./...
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go test -race -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
|
@ -4,10 +4,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"path"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var testFile = path.Join(`..`, `tests.json`)
|
var testFile = `tests.json`
|
||||||
|
|
||||||
func TestStemWord(t *testing.T) {
|
func TestStemWord(t *testing.T) {
|
||||||
file, err := ioutil.ReadFile(testFile)
|
file, err := ioutil.ReadFile(testFile)
|
Loading…
Reference in a new issue