language: clojure
lein: lein2
script: lein midje

language: clojure

before_install:
  - sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  - sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
  - echo exit 101 | sudo tee /usr/sbin/policy-rc.d
  - sudo chmod +x /usr/sbin/policy-rc.d

install:
  - sudo apt-get -qqy update
  - sudo apt-get -qqy install lxc lxc-docker
  - sudo sudo usermod -aG docker "$USER"

lein: lein2

script: lein midje

after_success:
  - docker build -t samsara/qanal:snapshot .
Build a docker image if build is successful
Build a docker image if build is successful
