language: php

php:
  - 7.1
  - 7.0
  - hhvm

before_script:
  - pip install --user codecov
  - composer self-update && composer install --dev

script:
  - docker build -t matthiasmullie/php-api .
  - docker run -d -p 80:80 matthiasmullie/php-api
  - ./vendor/bin/phpunit

after_success:
  - vendor/bin/cauditor
  - codecov

language: php

php:
  - 7.1
  - 7.0
  - hhvm

before_script:
  - pip install --user codecov
  - composer self-update && composer install --dev

script:
  - sudo kill -9 `sudo lsof -t -i:80`
  - docker build -t matthiasmullie/php-api .
  - docker run -d -p 80:80 matthiasmullie/php-api
  - ./vendor/bin/phpunit

after_success:
  - vendor/bin/cauditor
  - codecov

Make sure nothing is running on port 80
Make sure nothing is running on port 80
