Add glide config and set up tests to use glide

This commit is contained in:
Paul Bonser 2016-07-26 14:55:16 -05:00
parent 214c987e11
commit 5fd6aac546
6 changed files with 23 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.test
*.swp
vendor

View File

@ -1,15 +1,12 @@
language: go
go:
- 1.1
- 1.2
- 1.3
- 1.4.2
- 1.4.3
- 1.5
- 1.5.1
- 1.5.4
- 1.6.3
env:
global:
- GO15VENDOREXPERIMENT=1
matrix:
- ES_VERSION=1.0.3 GROOVY_VER=2.0.0
- ES_VERSION=1.1.2 GROOVY_VER=2.0.0
@ -27,9 +24,10 @@ before_script:
- "echo 'script.groovy.sandbox.enabled: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
- 'if [[ "${ES_VERSION}" < "1.3" ]]; then ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/plugin --install elasticsearch/elasticsearch-lang-groovy/${GROOVY_VER}; fi'
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch >/dev/null &
- sleep 10 # Wait for ES to start up
install:
- go get gopkg.in/check.v1
- go get github.com/Masterminds/glide
script:
- make test

View File

@ -1,10 +1,10 @@
help:
@echo "Available targets:"
@echo "- test: run tests"
@echo "- installdependencies: installs dependencies declared in dependencies.txt"
@echo "- deps: installs dependencies with glide"
installdependencies:
cat dependencies.txt | xargs go get
deps:
glide up
test: installdependencies
test: deps
go test -i && go test

6
glide.lock generated Normal file
View File

@ -0,0 +1,6 @@
hash: 7e39b5bd354c3f0770ca3a9d28a74a0523695d18effa1e540f006b325defcfe7
updated: 2016-07-26T14:50:32.597335795-05:00
imports: []
testImports:
- name: github.com/go-check/check
version: 4f90aeace3a26ad7021961c297b22c42160c7b25

5
glide.yaml Normal file
View File

@ -0,0 +1,5 @@
package: github.com/OwnLocal/goes
import: []
testImport:
- package: github.com/go-check/check
version: v1

View File

@ -12,7 +12,7 @@ import (
"testing"
"time"
. "gopkg.in/check.v1"
. "github.com/go-check/check"
)
var (