language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

sudo: required

addons:
  hosts:
    - riak-test

before_script:
  - composer self-update
  - composer install --prefer-source
  - sudo riak-admin bucket-type create phptest_counters '{"props":{"datatype":"counter"}}'
  - sudo riak-admin bucket-type create phptest_maps '{"props":{"datatype":"map"}}'
  - sudo riak-admin bucket-type create phptest_sets '{"props":{"datatype":"set"}}'
  - sudo riak-admin bucket-type create phptest_search '{"props":{}}'
  - sudo riak-admin bucket-type create phptest_leveldb '{"props":{"backend":"leveldb_backend"}}'
  - sudo riak-admin bucket-type activate phptest_counters
  - sudo riak-admin bucket-type activate phptest_maps
  - sudo riak-admin bucket-type activate phptest_sets
  - sudo riak-admin bucket-type activate phptest_search
  - sudo riak-admin bucket-type activate phptest_leveldb

notifications:
  webhooks: http://basho-engbot.herokuapp.com/travis?key=8d594c660ec46f616e37e24fd941c0ea1fc67963
  email: clients@basho.com

script: "./vendor/bin/phpunit --coverage-text"

services:
  - riak

language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - hhvm

sudo: required

addons:
  hosts:
    - riak-test

before_script:
  - composer self-update
  - composer install --prefer-source
  - sudo riak-admin bucket-type create phptest_counters '{"props":{"datatype":"counter"}}'
  - sudo riak-admin bucket-type create phptest_maps '{"props":{"datatype":"map"}}'
  - sudo riak-admin bucket-type create phptest_sets '{"props":{"datatype":"set"}}'
  - sudo riak-admin bucket-type create phptest_search '{"props":{}}'
  - sudo riak-admin bucket-type create phptest_leveldb '{"props":{"backend":"leveldb_backend"}}'
  - sudo riak-admin bucket-type activate phptest_counters
  - sudo riak-admin bucket-type activate phptest_maps
  - sudo riak-admin bucket-type activate phptest_sets
  - sudo riak-admin bucket-type activate phptest_search
  - sudo riak-admin bucket-type activate phptest_leveldb

notifications:
  webhooks: http://basho-engbot.herokuapp.com/travis?key=8d594c660ec46f616e37e24fd941c0ea1fc67963
  email: clients@basho.com

script: "./vendor/bin/phpunit --coverage-text"

services:
  - riak

Remove PHP 5.4 from Travis cfg as riak-phppb-client requires 5.5 or greater
Remove PHP 5.4 from Travis cfg as riak-phppb-client requires 5.5 or greater
