language: go

# Travis moved checkouts to be outside ${GOPATH%%:*}
#
# nb: the -v option to mkdir is not in SUSv4, but is portable enough

go: 1.1

install:
 - go version
 - repo_dir=$(/bin/pwd -P)
 - spider_parent="github.com/philpennock"
 - SPIDER_DIR="${spider_parent}/sks_spider"
 - DEPS_DIR="${spider_parent}/sks-deps"
 - BTREE_DIR="${DEPS_DIR}/btree"
 - GOTGO_DIR="github.com/droundy/gotgo/gotgo"
 - CHECKOUT_TOP="${GOPATH%%:*}/src"
 - "if ! [ -d \"$CHECKOUT_TOP/$spider_parent\" ]; then mkdir -pv \"$CHECKOUT_TOP/$spider_parent\" && ln -s \"$repo_dir\" \"$CHECKOUT_TOP/$SPIDER_DIR\"; fi"
 - go get -d "$DEPS_DIR"
 - go get -d "$GOTGO_DIR"
 - go build -v "$GOTGO_DIR"
 - ./gotgo -o "$CHECKOUT_TOP/$BTREE_DIR/btree.go" "$CHECKOUT_TOP/$BTREE_DIR/btree.got" string
 - go get -d -v
 - go build -v sks_stats_daemon.go
 - go test -i

script:
 - go vet
 - go test -v

language: go

# Travis moved checkouts to be outside ${GOPATH%%:*}
#
# nb: the -v option to mkdir is not in SUSv4, but is portable enough

go: 1.1

install:
 - go version
 - repo_dir=$(/bin/pwd -P)
 - spider_parent="github.com/philpennock"
 - SPIDER_DIR="${spider_parent}/sks_spider"
 - DEPS_DIR="${spider_parent}/sks-deps"
 - BTREE_DIR="${DEPS_DIR}/btree"
 - GOTGO_DIR="github.com/droundy/gotgo/gotgo"
 - CHECKOUT_TOP="${GOPATH%%:*}/src"
 - "if ! [ -d \"$CHECKOUT_TOP/$spider_parent\" ]; then mkdir -pv \"$CHECKOUT_TOP/$spider_parent\" && ln -s \"$repo_dir\" \"$CHECKOUT_TOP/$SPIDER_DIR\"; fi"
 - go get -d "$DEPS_DIR"
 - go get -d "$GOTGO_DIR"
 - go build -v "$GOTGO_DIR"
 - ./gotgo -o "$CHECKOUT_TOP/$BTREE_DIR/btree.go" -package-name btree "$CHECKOUT_TOP/$BTREE_DIR/btree.got" string
 - go get -d -v
 - go build -v sks_stats_daemon.go
 - go test -i

script:
 - go vet
 - go test -v

Adjust gotgo invocation for newer Go
Adjust gotgo invocation for newer Go

This gets `sks_stats_daemon.go` building with Go 1.2.1
