language: php
php:
  - 5.3
  - 5.6
  - hhvm
env:
  - LOGIN='username:password@localhost'
install:
  - bash -c '[ "$(id -un)" == "root" ] && apt-get update && apt-get install -y sudo || true'
  - sudo apt-get install -y asterisk
  - sudo cp tests/username.conf /etc/asterisk/manager.d/username.conf
  - sudo /etc/init.d/asterisk restart
  - composer install --prefer-source --no-interaction
script:
  - phpunit --coverage-text

language: php
php:
  - 5.3
  - 5.6
  - hhvm
env:
  - LOGIN=username:password@localhost
install:
  - sudo apt-get -qq update && sudo apt-get --no-install-recommends -qq install -y asterisk
  - sudo cp tests/username.conf /etc/asterisk/manager.d/username.conf
  - sudo /etc/init.d/asterisk reload
  - composer install --prefer-source --no-interaction
script:
  - sudo /etc/init.d/asterisk status || sudo /etc/init.d/asterisk start
  - sudo /etc/init.d/asterisk status || sleep 2
  - phpunit --coverage-text

Work around race conditions in Travis
Work around race conditions in Travis
