machine:
  services:
    - docker

dependencies:
  pre:
    - go get github.com/remind101/emp

test:
  override:
    - echo "No tests!"

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - git clone --recursive git://github.com/hackedu/packrat /tmp/packrat && cd /tmp/packrat && docker build -t hackedu/packrat:$CIRCLE_SHA1 . && docker push hackedu/packrat:$CIRCLE_SHA1
      - /usr/bin/expect -c "spawn /bin/bash; send \"emp login\r\"; expect email { send $EMP_USERNAME\r }; expect password { send $EMP_PASSWORD\r }; expect \"Logged in.\";" > /dev/null
      - emp deploy hackedu/packrat:$CIRCLE_SHA1

machine:
  services:
    - docker

dependencies:
  pre:
    - go get github.com/remind101/emp
    - curl -Ls https://install.convox.com/linux.zip > /tmp/convox.zip
      && sudo unzip /tmp/convox.zip -d /usr/local/bin

test:
  override:
    - echo "No tests!"

deployment:
  hub:
    branch: master
    commands:
      - convox login $CONVOX_HOST --password $CONVOX_PASSWORD
        | sed 's/docker .*/docker ********/'
      - git clone --recursive git://github.com/hackedu/packrat /tmp/packrat
        && cd /tmp/packrat
        && convox deploy

Use Convox instead of Empire for deployment
Use Convox instead of Empire for deployment
