
machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker build -t accounts-cbd-int .

test:
  override:
    - docker run -d -p 4444:8000 -e SAUCE_USERNAME=$SAUCE_USERNAME -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY ustwo/docker-sauce-connect:4.3
    - docker run -d -p 8000:8000 accounts-cbd-int
    - curl --retry 10 --retry-delay 2 -v http://localhost:4444
    - curl --retry 10 --retry-delay 2 -v http://localhost:8000
    - docker run --net host accounts-cbd-int protractor spec/conf.js


machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker build -t accounts-cbd-int .

test:
  override:
    - docker run -d -p 4444:8000 -e SAUCE_USERNAME=$SAUCE_USERNAME -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY ustwo/docker-sauce-connect:4.3
    - docker run -d -p 8000:8000 accounts-cbd-int
    - wget --retry-connrefused 10 http://localhost:4444
    - wget --retry-connrefused 10 http://localhost:8000
    - docker run --net host accounts-cbd-int protractor spec/conf.js

Use wget instead of curl
Use wget instead of curl
