Instead of godep just clone elasticgo repo

This commit is contained in:
Leonid Bugaev
2014-10-09 11:37:00 +04:00
parent e022fdff98
commit b2f90789d2
6 changed files with 6 additions and 10 deletions
-1
View File
@@ -1,3 +1,2 @@
*.swp
Godeps
*.gor
+1 -1
View File
@@ -1,3 +1,3 @@
language: go
go: 1.2.1
script: sudo -E bash -c "source /etc/profile && gvm use go1.2.1 && export GOPATH=$HOME/gopath:$GOPATH && go get github.com/tools/godep && godep go test -v"
script: sudo -E bash -c "source /etc/profile && gvm use go1.2.1 && export GOPATH=$HOME/gopath:$GOPATH && go test -v"
-2
View File
@@ -1,7 +1,5 @@
FROM google/golang
RUN go get github.com/tools/godep
WORKDIR /gopath/src/gor
ADD . /gopath/src/gor
+2 -2
View File
@@ -16,10 +16,10 @@ dbuild:
docker build -t gor .
dtest:
docker run -v `pwd`:/gopath/src/gor -t -i gor godep go test -v
docker run -v `pwd`:/gopath/src/gor -t -i gor go test -v
drun:
docker run -v `pwd`:/gopath/src/gor -t -i gor godep go run $(SOURCE) --input-dummy=0 --output-dummy=0 --verbose
docker run -v `pwd`:/gopath/src/gor -t -i gor go run $(SOURCE) --input-dummy=0 --output-dummy=0 --verbose
dbash:
docker run -v `pwd`:/gopath/src/gor -t -i gor /bin/bash
+1 -2
View File
@@ -197,12 +197,11 @@ https://github.com/buger/gor/releases
```
## Building from source
We use `godep` for managing dependencies, you can find instructions here: https://github.com/tools/godep. Basically it means that all `go` calls should be prefixed by `godep` command.
1. Setup standard Go environment http://golang.org/doc/code.html and ensure that $GOPATH environment variable properly set.
2. `go get github.com/buger/gor`.
3. `cd $GOPATH/src/github.com/buger/gor`
4. `godep go build` to get binary, or `go test` to run tests
4. `go build` to get binary, or `go test` to run tests
## Development
Project contains Docker environment.
+2 -2
View File
@@ -2,8 +2,8 @@ package main
import (
"encoding/json"
"github.com/mattbaird/elastigo/api"
"github.com/mattbaird/elastigo/core"
"github.com/buger/elastigo/api"
"github.com/buger/elastigo/core"
"log"
"net/http"
"regexp"