language: go

go:
- tip
- 1.2

install:
- export GOPATH="$HOME/gopath"
- mkdir -p "$GOPATH/src/zombiezen.com/go"
- mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/zombiezen.com/go/capnproto"
- go get -v -t -d zombiezen.com/go/capnproto

script:
- go test -v zombiezen.com/go/capnproto/...

language: go

go:
- tip
- 1.2

install:
# Install capnp
- cd "$HOME"
- wget -O capnproto.tar.gz https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz
- cd capnproto-c++-0.5.1.2
- ./configure
- make -j6 check
- sudo make install
# Install go-capnproto
- export GOPATH="$HOME/gopath"
- mkdir -p "$GOPATH/src/zombiezen.com/go"
- mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/zombiezen.com/go/capnproto"
- go get -v -t -d zombiezen.com/go/capnproto

script:
- go test -v zombiezen.com/go/capnproto/...

Add step in Travis config to install capnp
Add step in Travis config to install capnp
