language: php

php:
  - 5.4
  - 5.5
  - 5.6

services:
  - mysql
  - memcached
  - elasticsearch
  - redis-server

addons:
  apt:
    sources:
      - mongodb-upstart
    packages:
      - libgearman-dev
      - libsvm-dev
      - mongodb-org-server
      - re2c

before_script:
  - tests/travis/install-php-runkit.sh
  - tests/travis/install-php-svm.sh
  - yes '' | travis_retry pecl install imagick
  - travis_retry pecl install stats-1.0.3
  - travis_retry pecl install gearman-1.0.3
  - if [ `php-config --vernum` -ge 50500 ]; then yes '' | travis_retry pecl install apcu-4.0.10; fi
  - phpenv config-add tests/travis/php.ini
  - phpenv config-add tests/travis/php-$TRAVIS_PHP_VERSION.ini
  - npm install -g autoprefixer@4.0.0
  - npm install -g uglify-js@2.4.13
  - npm install -g browserify@11.2.0
  - composer install
  - cp tests/travis/config.php resources/config/local.php
  - bin/cm app set-deploy-version

script:
  - bin/phpunit
  - bin/qunit

sudo: false

notifications:
  email: false

language: php

php:
  - 5.4
  - 5.5
  - 5.6

services:
  - mysql
  - memcached
  - elasticsearch
  - redis-server

addons:
  apt:
    sources:
      - mongodb-upstart
    packages:
      - libgearman-dev
      - libsvm-dev
      - mongodb-org-server
      - re2c

before_script:
  - tests/travis/install-php-runkit.sh
  - tests/travis/install-php-svm.sh
  - yes '' | travis_retry pecl install imagick
  - travis_retry pecl install stats-1.0.3
  - travis_retry pecl install gearman-1.0.3
  - if [ `php-config --vernum` -ge 50500 ]; then yes '' | travis_retry pecl install apcu-4.0.10; fi
  - phpenv config-add tests/travis/php.ini
  - phpenv config-add tests/travis/php-$TRAVIS_PHP_VERSION.ini
  - npm install -g autoprefixer@4.0.0
  - npm install -g uglify-js@2.4.13
  - npm install -g browserify@11.2.0
  - npm install -g phantomjs-prebuilt@2.1.7
  - composer install
  - cp tests/travis/config.php resources/config/local.php
  - bin/cm app set-deploy-version

script:
  - bin/phpunit
  - bin/qunit

sudo: false

notifications:
  email: false

Install the latest phantomjs version for Travis CI
Install the latest phantomjs version for Travis CI
