sudo: false # Use TravisCI new Docker container infrastructure

language: php

php:
  - 5.5
  - 5.6
  - 7
  - nightly

matrix:
  allow_failures:
    - php: hhvm, 7, nightly

services:
  - memcached
  - redis
  - mysql

notifications:
  email:
    on_success: change
    on_failure: change
    
before_script:
  - composer selfupdate
  - composer install # Install rather than update
  - php -i
  - mysql -e 'create database ciims_travis;'
  - echo "2.0.0-dev" > protected/config/VERSION
  - php index.php installer index --dbHost=127.0.0.1 --dbName=ciims_travis --dbUsername=root --dbPassword="" --adminEmail="travis@ciims.io" --adminPassword=travis --adminUsername=travis --siteName="CiiMS - Travis CI"


script: ./vendor/bin/codecept run

sudo: false # Use TravisCI new Docker container infrastructure

language: php

php:
  - 5.5
  - 5.6
  - 7

matrix:
  allow_failures:
    - php: 7

services:
  - memcached
  - redis
  - mysql

notifications:
  email:
    on_success: change
    on_failure: change
    
before_script:
  - composer selfupdate
  - composer install # Install rather than update
  - php -i
  - mysql -e 'create database ciims_travis;'
  - echo "2.0.0-dev" > protected/config/VERSION
  - php index.php installer index --dbHost=127.0.0.1 --dbName=ciims_travis --dbUsername=root --dbPassword="" --adminEmail="travis@ciims.io" --adminPassword=travis --adminUsername=travis --siteName="CiiMS - Travis CI"


script: ./vendor/bin/codecept run

Allow PHP7 builds to fail
Allow PHP7 builds to fail
