Browse Source

Test in AppVeyor

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 7 years ago
parent
commit
734a3bf3d0
3 changed files with 10 additions and 1 deletions
  1. 4 0
      appveyor.yml
  2. 2 0
      changes_xpather_test.go
  3. 4 1
      uast_test.go

+ 4 - 0
appveyor.yml

@@ -22,6 +22,10 @@ build_script:
   - make
   - 7z a c:\gopath\src\gopkg.in\src-d\hercules.v3\hercules.win64.zip %GOPATH%\bin\hercules.exe
 
+test_script:
+  - go get -v -t -d gopkg.in/src-d/hercules.v3/...
+  - go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v3
+
 artifacts:
   - name: hercules.win64.zip
     path: hercules.win64.zip

+ 2 - 0
changes_xpather_test.go

@@ -1,3 +1,5 @@
+// +build !disable_babelfish
+
 package hercules
 
 import (

+ 4 - 1
uast_test.go

@@ -1,3 +1,5 @@
+// +build !disable_babelfish
+
 package hercules
 
 import (
@@ -7,13 +9,14 @@ import (
 	"testing"
 
 	"fmt"
+	"path"
+
 	"github.com/gogo/protobuf/proto"
 	"github.com/stretchr/testify/assert"
 	"gopkg.in/bblfsh/sdk.v1/uast"
 	"gopkg.in/src-d/go-git.v4/plumbing"
 	"gopkg.in/src-d/go-git.v4/plumbing/object"
 	"gopkg.in/src-d/hercules.v3/pb"
-	"path"
 )
 
 func fixtureUASTExtractor() *UASTExtractor {