language: php

sudo: false

addons:
    postgresql: "9.4"

services:
    - elasticsearch
    - postgresql

php:
    - 5.5
    - 5.6
    - 7.0

matrix:
    fast_finish: true

before_install:
    - phpenv config-rm xdebug.ini || true
    - composer self-update
    - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then composer require --dev --no-update kphoen/rusty dev-master; fi

install:
    - composer install --optimize-autoloader --prefer-source

before_script:
    - curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=4.10.4 SOLR_CORE=rulerz_tests SOLR_CONFS="./scripts/solr/config/conf/schema.xml ./scripts/solr/config/conf/solrconfig.xml" bash
    - cp -r ./scripts/solr/config/conf/* ./solr-4.10.4/example/multicore/rulerz_tests/conf

script:
    - make databases
    - make tests
    - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then make rusty; fi

language: php

sudo: false

cache:
    directories:
        - $HOME/.composer/cache

addons:
    postgresql: "9.4"

services:
    - elasticsearch
    - postgresql

php:
    - 5.5
    - 5.6
    - 7.0

matrix:
    fast_finish: true

before_install:
    - phpenv config-rm xdebug.ini || true
    - composer self-update
    - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then composer require --dev --no-update kphoen/rusty dev-master; fi

install:
    - composer install --optimize-autoloader --no-interaction

before_script:
    - curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=4.10.4 SOLR_CORE=rulerz_tests SOLR_CONFS="./scripts/solr/config/conf/schema.xml ./scripts/solr/config/conf/solrconfig.xml" bash
    - cp -r ./scripts/solr/config/conf/* ./solr-4.10.4/example/multicore/rulerz_tests/conf

script:
    - make databases
    - make tests
    - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then make rusty; fi

Add composer cache directory to the builds cache
Add composer cache directory to the builds cache
