language: go

# TODO: support building/testing with both golang and gccgo?
go:
  - 1.4

before_install:
  - sudo apt-add-repository -y ppa:ubuntu-lxc/daily
  - sudo apt-get update -qq

install:
  - sudo apt-get install lxc lxc-dev sqlite3 jq
  - go get golang.org/x/tools/cmd/vet
  - mkdir -p $GOPATH/github.com/lxc
  - go get -v -d ./...
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/lxc/lxd/
  - echo "root:100000:65536" | sudo tee /etc/subuid
  - echo "root:100000:65536" | sudo tee /etc/subgid

script: "sudo -E env PATH=$PATH make check"
notifications:
  webhooks: https://linuxcontainers.org/webhook-lxcbot/

language: go

# TODO: support building/testing with both golang and gccgo?
go:
  - 1.4

before_install:
  - sudo apt-add-repository -y ppa:ubuntu-lxc/daily
  - sudo apt-get update -qq

install:
  - sudo apt-get install lxc lxc-dev sqlite3 jq
  - go get golang.org/x/tools/cmd/vet
  - mkdir -p $GOPATH/github.com/lxc
  - go get -v -d ./...
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/lxc/lxd/
  - echo "root:100000:65536" | sudo tee /etc/subuid
  - echo "root:100000:65536" | sudo tee /etc/subgid
  - sudo stop cgmanager

script: "sudo -E env PATH=$PATH make check"
notifications:
  webhooks: https://linuxcontainers.org/webhook-lxcbot/

Stop cgmanager (spams the log)
Travis: Stop cgmanager (spams the log)

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>
