language: php

php:
  - 5.5
  - 5.6

before_script:
  - env
  - mkdir Build; cd Build
  - VERSION=$( if [ $TRAVIS_TAG ] ; then echo $TRAVIS_TAG ; else echo "dev-${TRAVIS_BRANCH}#${TRAVIS_COMMIT}" ; fi )
  - |
    cat <<EOF > composer.json
    {
      "name": "typo3/neos-base-distribution",
      "config": {
          "vendor-dir": "Packages/Libraries",
          "bin-dir": "bin"
      },
      "require": {
          "typo3/neos": "~2.0",
          "moc/varnish": "${VERSION}"
      },
      "require-dev": {
          "typo3/buildessentials": "~3.0",
          "mikey179/vfsstream": "1.5.*",
          "phpunit/phpunit": "4.6.*"
      },
      "scripts": {
          "post-update-cmd": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
          "post-install-cmd": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
          "post-package-update": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall",
          "post-package-install": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall"
      }
    }
  - cat composer.json
  - composer update

script: bin/phpunit -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/MOC.Varnish/Tests/Unit

language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

before_script:
  - env
  - mkdir Build; cd Build
  - VERSION=$( if [ $TRAVIS_TAG ] ; then echo $TRAVIS_TAG ; else echo "dev-${TRAVIS_BRANCH}#${TRAVIS_COMMIT}" ; fi )
  - |
    cat <<EOF > composer.json
    {
      "name": "typo3/neos-base-distribution",
      "config": {
          "vendor-dir": "Packages/Libraries",
          "bin-dir": "bin"
      },
      "require": {
          "typo3/neos": "~2.0",
          "moc/varnish": "${VERSION}"
      },
      "require-dev": {
          "typo3/buildessentials": "~3.0",
          "mikey179/vfsstream": "1.5.*",
          "phpunit/phpunit": "4.6.*"
      },
      "scripts": {
          "post-update-cmd": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
          "post-install-cmd": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
          "post-package-update": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall",
          "post-package-install": "TYPO3\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall"
      }
    }
  - cat composer.json
  - composer update

script: bin/phpunit -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/MOC.Varnish/Tests/Unit

Add additional PHP versions to Travis tests
[TASK] Add additional PHP versions to Travis tests