Skip to content

Commit

Permalink
update Godeps and fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Jan 23, 2014
1 parent 756594f commit da7a4e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Expand Up @@ -6,17 +6,10 @@ go:
env:
- GOARCH=amd64
- GOARCH=386
install:
- go get github.com/kr/godep || true
# these need to be installed manually for go1.0.x
- go get github.com/bitly/go-nsq
- go get github.com/bitly/go-simplejson
- go get github.com/bitly/go-hostpool
- go get github.com/mreiferson/go-snappystream
- go get github.com/bmizerany/assert
- go get github.com/bmizerany/perks/quantile
script:
- export PATH="$HOME/gopath/bin:$PATH"
- wget "http://bitly-downloads.s3.amazonaws.com/nsq/godep.linux-$(go env GOARCH).tar.gz"
- tar zxvf "godep.linux-$(go env GOARCH).tar.gz"
- export GOPATH="$(./godep path):$GOPATH"
- ./test.sh
notifications:
email: false
4 changes: 4 additions & 0 deletions Godeps
Expand Up @@ -9,6 +9,10 @@
"ImportPath": "code.google.com/p/snappy-go/snappy",
"Rev": "12e4b4183793ac4b061921e7980845e750679fd0"
},
{
"ImportPath": "github.com/BurntSushi/toml",
"Rev": "2dff11163ee667d51dcc066660925a92ce138deb"
},
{
"ImportPath": "github.com/bitly/go-hostpool",
"Rev": "58b95b10d6ca26723a7f46017b348653b825a8d6"
Expand Down
5 changes: 0 additions & 5 deletions test.sh
@@ -1,11 +1,6 @@
#!/bin/bash
set -e

if go version | grep -q -v "go1.0"; then
# godep doesn't build for go1 so dont use it
export GOPATH=$(godep path):$GOPATH
fi

# build and run nsqlookupd
echo "building and starting nsqlookupd"
go build -o nsqlookupd/nsqlookupd ./nsqlookupd
Expand Down

0 comments on commit da7a4e6

Please sign in to comment.