sudo: false

language: php

php:
    - 5.3
    - 5.4
    - 5.5

env:
    - WP_VERSION=latest WP_MULTISITE=0
    - WP_VERSION=latest WP_MULTISITE=1
    - WP_VERSION=4.1.9 WP_MULTISITE=0
    - WP_VERSION=4.1.9 WP_MULTISITE=1

matrix:
    include:
        - php: hhvm
          env: WP_VERSION=latest WP_MULTISITE=0
        - php: hhvm
          env: WP_VERSION=latest WP_MULTISITE=1

before_script:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then autodetect | pecl install imagick; fi
    - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
    - composer install --dev --prefer-source

script:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then mkdir -p build/logs; phpunit --coverage-clover build/logs/clover.xml; fi
    - if [ "$TRAVIS_BRANCH" != "master" ]; then phpunit -c bin/phpunit-nocover.xml; fi

after_script:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then php vendor/bin/coveralls -v; fi

after_success:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then coveralls; fi

sudo: false

language: php

php:
    - 5.4
    - 5.5

env:
    - WP_VERSION=latest WP_MULTISITE=0
    - WP_VERSION=latest WP_MULTISITE=1

matrix:
    include:
        - php: hhvm
          env: WP_VERSION=latest WP_MULTISITE=0
        - php: hhvm
          env: WP_VERSION=latest WP_MULTISITE=1

before_script:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then autodetect | pecl install imagick; fi
    - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
    - composer install --dev --prefer-source

script:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then mkdir -p build/logs; phpunit --coverage-clover build/logs/clover.xml; fi
    - if [ "$TRAVIS_BRANCH" != "master" ]; then phpunit -c bin/phpunit-nocover.xml; fi

after_script:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then php vendor/bin/coveralls -v; fi

after_success:
    - if [ "$TRAVIS_BRANCH" == "master" ]; then coveralls; fi

Remove old versions of PHP and WP
Remove old versions of PHP and WP
