sudo: required

addons:
  apt:
    sources:
      - debian-sid    # Grab shellcheck from the Debian repo (o_O)
    packages:
      - shellcheck

services:
  - docker

env:
  - DOCKER_RELEASE="1.10.3" WEAVE_RELEASE="v1.5.1" KUBERNETES_RELEASE="v1.1.8"
  - DOCKER_RELEASE="1.10.3" WEAVE_RELEASE="v1.5.1" KUBERNETES_RELEASE="v1.2.4" FORCE_USERSPACE_PROXY="yes"

install:
  - sudo service docker stop
  - sudo curl --silent --location https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_RELEASE} --output /usr/bin/docker
  - sudo chmod +x /usr/bin/docker
  - sudo service docker start
  - sudo curl --silent --location https://github.com/weaveworks/weave/releases/download/${WEAVE_RELEASE}/weave --output /usr/bin/weave
  - sudo chmod +x /usr/bin/weave
  - weave launch-router
  - weave launch-proxy --rewrite-inspect
  - weave launch-plugin
  - weave expose -h "$(hostname).weave.local"
  - weave status
  - docker ps
  - docker images

script:
  - ./test-shellcheck
  - env NO_PUSH=1 ./build-and-push ${KUBERNETES_RELEASE}
  - ./test-docker-compose
  - docker ps
  - docker images
  - weave status dns

sudo: required

addons:
  apt:
    sources:
      - debian-sid    # Grab shellcheck from the Debian repo (o_O)
    packages:
      - shellcheck

services:
  - docker

env:
  - DOCKER_RELEASE="1.10.3" WEAVE_RELEASE="v1.5.1" KUBERNETES_RELEASE="v1.2.4" FORCE_USERSPACE_PROXY="yes"

install:
  - sudo service docker stop
  - sudo curl --silent --location https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_RELEASE} --output /usr/bin/docker
  - sudo chmod +x /usr/bin/docker
  - sudo service docker start
  - sudo curl --silent --location https://github.com/weaveworks/weave/releases/download/${WEAVE_RELEASE}/weave --output /usr/bin/weave
  - sudo chmod +x /usr/bin/weave
  - weave launch-router
  - weave launch-proxy --rewrite-inspect
  - weave launch-plugin
  - weave expose -h "$(hostname).weave.local"
  - weave status
  - docker ps
  - docker images

script:
  - ./test-shellcheck
  - env NO_PUSH=1 ./build-and-push ${KUBERNETES_RELEASE}
  - ./test-docker-compose
  - docker ps
  - docker images
  - weave status dns

Test broke for 1.1.8, about the time to remove it
Test broke for 1.1.8, about the time to remove it
