version: 2

jobs:
  build:
    docker:
    - image: ankyra/escape:latest

    steps:
    - checkout
    - setup_remote_docker
    - run:
        name: Install Docker client
        command: |
          set -x
          VER="17.03.0-ce"
          curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
          tar -xz -C /tmp -f /tmp/docker-$VER.tgz
          mv /tmp/docker/* /usr/bin

    - run: 
        name: Build and test Escape release
        command: |
          escape build && escape test
          if [ "$CIRCLE_BRANCH" = "master" ] ; then
            escape release --skip-build
          fi


version: 2

jobs:
  build:
    docker:
    - image: ankyra/escape:latest

    steps:
    - checkout
    - setup_remote_docker
    - run:
        name: Install Docker client
        command: |
          set -x
          VER="17.03.0-ce"
          curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
          tar -xz -C /tmp -f /tmp/docker-$VER.tgz
          mv /tmp/docker/* /usr/bin

    - run: 
        name: Build and test Escape release
        command: |
          escape build && escape test && if [ "$CIRCLE_BRANCH" = "master" ] ; then
            escape release --skip-build
          fi


Work around for Circle's lack of 'set -e' support
Work around for Circle's lack of 'set -e' support
