machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker build -t pogo-cruncher/frontend frontend/.

test:
  override:
    - docker run -d -p 8888:8888 pogo-cruncher/frontend; sleep 10
    - curl --retry 10 --retry-delay 5 -v http://localhost:8888

machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker build -t pogo-cruncher/frontend frontend/.
    - docker build -t pogo-cruncher/backend .

test:
  override:
    - docker run -d pogo-cruncher/frontend; sleep 10
    - docker run -d -p 5000:5000 pogo-cruncher/backend; sleep 10
    - curl --retry 10 --retry-delay 5 -v http://localhost:8888
    - curl --retry 10 --retry-delay 5 -v http://localhost:5000/up-and-running

Add backend to CI build
Add backend to CI build
