language: php
php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - hhvm
  - hhvm-nightly
env:
  - WP_VERSION=3.8 WP_MULTISITE=0
  - WP_VERSION=3.8 WP_MULTISITE=1
  - WP_VERSION=latest WP_MULTISITE=0
  - WP_VERSION=latest WP_MULTISITE=1

before_script:
  - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
  - cd ..
  - mv papi /tmp/wordpress/wp-content/plugins/
  - cd /tmp/wordpress/wp-content/plugins/papi/

script: phpunit -c phpunit.xml.dist

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./tmp/clover.xml

matrix:
  allow_failures:
    - php: hhvm-nightly

notifications:
  webhooks:
    urls:
      https://webhooks.gitter.im/e/8d1f8d61b39b2676c053

language: php
php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - hhvm
  - hhvm-nightly
env:
  - WP_VERSION=3.9 WP_MULTISITE=0
  - WP_VERSION=3.9 WP_MULTISITE=1
  - WP_VERSION=latest WP_MULTISITE=0
  - WP_VERSION=latest WP_MULTISITE=1

before_script:
  - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
  - cd ..
  - mv papi /tmp/wordpress/wp-content/plugins/
  - cd /tmp/wordpress/wp-content/plugins/papi/

script: phpunit -c phpunit.xml.dist

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./tmp/clover.xml

matrix:
  allow_failures:
    - php: hhvm-nightly

notifications:
  webhooks:
    urls:
      https://webhooks.gitter.im/e/8d1f8d61b39b2676c053

Test again 3.9 since hhvm and 3.8 dont workg
Test again 3.9 since hhvm and 3.8 dont workg
