From cf07a154d56f87d34568c44c9c28367985a9e935 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 10 May 2018 03:03:55 +0300 Subject: [PATCH] Move files Added travis.yml --- .travis.yml | 14 ++++++++++++++ StemmerRu/stemmer.go => stemmer.go | 0 StemmerRu/stemmer_test.go => stemmer_test.go | 3 +-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .travis.yml rename StemmerRu/stemmer.go => stemmer.go (100%) rename StemmerRu/stemmer_test.go => stemmer_test.go (90%) 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 similarity index 100% rename from StemmerRu/stemmer.go rename to stemmer.go diff --git a/StemmerRu/stemmer_test.go b/stemmer_test.go similarity index 90% rename from StemmerRu/stemmer_test.go rename to 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)