language: go

go:
  - 1.2
  - 1.3
  - 1.3.1

env:
  - GOARCH=amd64
  - GOARCH=386

before_install:
  - "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
  - "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
  - "sudo apt-get update"
  - "sudo apt-get install mongodb-org-server"

install:
  - export PATH="$HOME/gopath/bin:$PATH"
  - go get github.com/tools/godep
  - go get -t -d ./...
  - godep restore ./...

before_script:
  - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done"

script:
  - go test -x ./...

services:
  - mongodb
  - redis-server

notifications:
  email:
    recipients:
      - albertonb@gmail.com

language: go

go:
  - 1.2
  - 1.3
  - 1.3.1
  - tip

env:
  - GOARCH=amd64
  - GOARCH=386

before_install:
  - "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
  - "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
  - "sudo apt-get update"
  - "sudo apt-get install mongodb-org-server"

install:
  - export PATH="$HOME/gopath/bin:$PATH"
  - go get github.com/tools/godep
  - go get -t -d ./...
  - godep restore ./...

before_script:
  - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done"

script:
  - go test -x ./...

services:
  - mongodb
  - redis-server

notifications:
  email:
    recipients:
      - albertonb@gmail.com

Add the latest version on Travis.
Add the latest version on Travis.
