diff options
author | Alexander Kiryukhin <a.kiryukhin@corp.mail.ru> | 2018-05-10 03:03:55 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@corp.mail.ru> | 2018-05-10 03:14:06 +0300 |
commit | cf07a154d56f87d34568c44c9c28367985a9e935 (patch) | |
tree | 6a8d5653ea55abee1f7890245f450c5649d38c0a | |
parent | 6796db17de2374cb3120287ebeb0b6a02d0b8089 (diff) |
Move filesv1
Added travis.yml
-rw-r--r-- | .travis.yml | 14 | ||||
-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) |