language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

sudo: false

env:
  - LARAVEL_VERSION="~5.1.0" TESTBENCH_VERSION="~3.1.0"
  - LARAVEL_VERSION="~5.2.0" TESTBENCH_VERSION="~3.2.0"
  - LARAVEL_VERSION="~5.3.0" TESTBENCH_VERSION="~3.3.0"

before_install:
  - sed -i s/~5.1.0\|\|~5.2.0\|\|~5.3.0/${LARAVEL_VERSION}/ composer.json
  - sed -i s/~3.1.0\|\|~3.2.0\|\|~3.3.0/${TESTBENCH_VERSION}/ composer.json
  - composer update # Use update since we'll be changing the composer.json

script: vendor/bin/phpunit tests

language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

matrix:
  allow_failures:
    - php: hhvm
    - php: 5.5 # Laravel 5.3 doesn't support PHP 5.5

sudo: false

env:
  - LARAVEL_VERSION="~5.1.0" TESTBENCH_VERSION="~3.1.0"
  - LARAVEL_VERSION="~5.2.0" TESTBENCH_VERSION="~3.2.0"
  - LARAVEL_VERSION="~5.3.0" TESTBENCH_VERSION="~3.3.0"

before_install:
  - sed -i s/~5.1.0\|\|~5.2.0\|\|~5.3.0/${LARAVEL_VERSION}/ composer.json
  - sed -i s/~3.1.0\|\|~3.2.0\|\|~3.3.0/${TESTBENCH_VERSION}/ composer.json
  - composer update # Use update since we'll be changing the composer.json

script: vendor/bin/phpunit tests

Tweak Travis CI config, because Laravel 5.3 doesn't support PHP 5.5
Tweak Travis CI config, because Laravel 5.3 doesn't support PHP 5.5
