language: go

go:
  - 1.6.1

install:
  - mkdir ${GOPATH}/src/github.com/freewil
  - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box
  - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box
  - wget https://bitcoin.org/bin/bitcoin-core-0.11.2/bitcoin-0.11.2-linux64.tar.gz -O /tmp/bitcoin.tar.gz
  - tar -xvf /tmp/bitcoin.tar.gz
  - export PATH=$PATH:$(pwd)/bitcoin-0.11.2/bin
  - make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box start
  - bash -c 'while ! make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box/ getinfo; do sleep 1; done;'
  - make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box stop

script:
  - go test -v github.com/AutoRoute/node/... -race

language: go

go:
  - 1.6.1

install:
  - mkdir ${GOPATH}/src/github.com/freewil
  - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box
  - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box
  - wget https://bitcoin.org/bin/bitcoin-core-0.12.1/bitcoin-0.12.1-linux64.tar.gz -O /tmp/bitcoin.tar.gz
  - tar -xvf /tmp/bitcoin.tar.gz
  - export PATH=$PATH:$(pwd)/bitcoin-0.12.1/bin
  - make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box start
  - bash -c 'while ! make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box/ getinfo; do sleep 1; done;'
  - make -C ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box stop

script:
  - go test -v ./... -race

Use a newer version of bitcoin.
Use a newer version of bitcoin.
