aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml14
-rw-r--r--stemmer.go (renamed from StemmerRu/stemmer.go)0
-rw-r--r--stemmer_test.go (renamed from StemmerRu/stemmer_test.go)3
3 files changed, 15 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..bc58899
--- /dev/null
+++ b/.travis.yml
@@ -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) \ No newline at end of file
diff --git a/StemmerRu/stemmer.go b/stemmer.go
index f15281b..f15281b 100644
--- a/StemmerRu/stemmer.go
+++ b/stemmer.go
diff --git a/StemmerRu/stemmer_test.go b/stemmer_test.go
index 018c6e3..8b27774 100644
--- a/StemmerRu/stemmer_test.go
+++ b/stemmer_test.go
@@ -4,10 +4,9 @@ import (
"testing"
"io/ioutil"
"encoding/json"
- "path"
)
-var testFile = path.Join(`..`, `tests.json`)
+var testFile = `tests.json`
func TestStemWord(t *testing.T) {
file, err := ioutil.ReadFile(testFile)