language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - hhvm
  - nightly

before_install:
  - composer self-update
  - composer install --dev -n --prefer-source
  - if [ "5.5" == $TRAVIS_PHP_VERSION ]; then pyrus install pear/PHP_CodeSniffer; fi
  - phpenv rehash

script:
  - if [ "5.5" == $TRAVIS_PHP_VERSION ]; then phpcs --standard=.phpcs-standard.xml src/ src/; fi
  - phpunit -c phpunit.xml.dist

sudo: false

notifications:
  email:
    recipients:
      - dev@maxmind.com
    on_success: change
    on_failure: always

matrix:
  allow_failures:
    - php: nightly

language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm
  - nightly

before_install:
  - composer self-update
  - composer install --dev -n --prefer-source
  - if [ "5.5" == $TRAVIS_PHP_VERSION ]; then pyrus install pear/PHP_CodeSniffer; fi
  - phpenv rehash

script:
  - if [ "5.5" == $TRAVIS_PHP_VERSION ]; then phpcs --standard=.phpcs-standard.xml src/ src/; fi
  - phpunit -c phpunit.xml.dist

sudo: false

notifications:
  email:
    recipients:
      - dev-ci@maxmind.com
    on_success: change
    on_failure: always

matrix:
  allow_failures:
    - php: nightly

Test on PHP 7. Update CI email.
Test on PHP 7. Update CI email.
