language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0

matrix:
  allow_failures:
    - php: 7.0

before_script:
    - export DISPLAY=:99.0
    - Xvfb $DISPLAY -extension RANDR &> /dev/null &
    - curl http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar > selenium.jar
    - java -jar selenium.jar &> /dev/null &
    - php -S localhost:8000 -t tests/fixtures/ &> /dev/null &
    - cp behat.yml{-dist,}
    - composer selfupdate
    - composer install

script:
    - ./bin/behat -fprogress

    - ./bin/box build
    - sed -i 's/Novaway\\CommonContexts\\Extension/nw_common_contexts.phar/' behat.yml
    - ./bin/behat -fprogress

language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0

before_script:
    - export DISPLAY=:99.0
    - Xvfb $DISPLAY -extension RANDR &> /dev/null &
    - curl http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar > selenium.jar
    - java -jar selenium.jar &> /dev/null &
    - php -S localhost:8000 -t tests/fixtures/ &> /dev/null &
    - cp behat.yml{-dist,}
    - composer selfupdate
    - composer install

script:
    - ./bin/behat -fprogress

    - ./bin/box build
    - sed -i 's/Novaway\\CommonContexts\\Extension/nw_common_contexts.phar/' behat.yml
    - ./bin/behat -fprogress

Update Travis configuration for PHP 7
Update Travis configuration for PHP 7
