language: php

dist: trusty

php:
  - 7.1
  - 7.2
  # - hhvm

env:
  - DB=mysql DATABASE_MYSQL=mysql://travis@127.0.0.1:3306/nymph_testing
  - DB=pgsql DATABASE_PGSQL=postgres://postgres@localhost:5432/nymph_testing
  - DB=sqlite

matrix:
  exclude:
    - php: hhvm
      env: DB=pgsql DATABASE_PGSQL=postgres://postgres@localhost:5432/nymph_testing

services:
  - mysql
  - postgresql

before_install:
  - alias mysql='mysql --socket=/run/mysql-5.6/mysqld.sock'
  - if [[ "$DB" == "pgsql" || "$DB" == "" ]]; then psql -c "CREATE DATABASE nymph_testing;" -U postgres; fi
  - if [[ "$DB" == "mysql" || "$DB" == "" ]]; then mysql -e "CREATE DATABASE IF NOT EXISTS nymph_testing;" -uroot; fi
  - if [[ "$DB" == "mysql" || "$DB" == "" ]]; then mysql -e "GRANT ALL PRIVILEGES ON nymph_testing.* TO 'travis'@'127.0.0.1' WITH GRANT OPTION;" -uroot; fi

install: composer install --no-interaction

script: ./testing/run

language: php

dist: trusty

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  # - hhvm

env:
  - DB=mysql DATABASE_MYSQL=mysql://travis@127.0.0.1:3306/nymph_testing
  - DB=pgsql DATABASE_PGSQL=postgres://postgres@localhost:5432/nymph_testing
  - DB=sqlite

matrix:
  exclude:
    - php: hhvm
      env: DB=pgsql DATABASE_PGSQL=postgres://postgres@localhost:5432/nymph_testing

services:
  - mysql
  - postgresql

before_install:
  - alias mysql='mysql --socket=/run/mysql-5.6/mysqld.sock'
  - if [[ "$DB" == "pgsql" || "$DB" == "" ]]; then psql -c "CREATE DATABASE nymph_testing;" -U postgres; fi
  - if [[ "$DB" == "mysql" || "$DB" == "" ]]; then mysql -e "CREATE DATABASE IF NOT EXISTS nymph_testing;" -uroot; fi
  - if [[ "$DB" == "mysql" || "$DB" == "" ]]; then mysql -e "GRANT ALL PRIVILEGES ON nymph_testing.* TO 'travis'@'127.0.0.1' WITH GRANT OPTION;" -uroot; fi

install: composer install --no-interaction

script: ./testing/run

Add new versions of PHP for Travis CI.
Add new versions of PHP for Travis CI.
