language: php

sudo: required

services:
  - docker

php:
  - '5.6'

before_install:
  - docker --version
  - docker-compose --version

  - docker-compose build >> /dev/null

  - docker-compose run --rm php composer install --prefer-source --no-interaction --dev >> /dev/null
  - docker-compose run --rm node npm install --loglevel error

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - make phpunit
  - make phpcs
  - make karma options='--single-run'

notifications:
    on_success: never
    on_failure: always

language: php

sudo: required

services:
  - docker

php:
  - '5.6'

before_install:
  - docker --version
  - docker-compose --version

  - docker-compose build --no-cache >> /dev/null

  - docker-compose run --rm php composer install --prefer-source --no-interaction --dev >> /dev/null
  - docker-compose run --rm node npm install --loglevel error

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - make phpunit
  - make phpcs
  - make karma options='--single-run'

notifications:
    on_success: never
    on_failure: always

Rebuild docker images in Travis.
Rebuild docker images in Travis.
