# see http://about.travis-ci.org/docs/user/languages/php/ for more hints

dist: trusty
sudo: required

language: php
php:
  - 5.6
  - 7.0
  - 7.1
  - hhvm

matrix:
  allow_failures:
    - php: 5.6
    - php: 7.0
    - php: hhvm

before_script:
  - git clone https://github.com/eustasy/normal-checks.git
  - cd normal-checks
  - git checkout 4256f55ef631900df06ca5c6167e21e6ed4cf55b
  - cd ../

script:
  - ./normal-checks/check-config.sh
  - ./normal-checks/check-permissions.sh
  - ./normal-checks/check-javascript.sh
  - ./normal-checks/check-css.sh
  - ./normal-checks/check-php.sh
  - php normal-checks/check-json.php
  - php normal-checks/check-xml.php

notifications:
  email:
    recipients:
      - lewisgoddard@eustasy.org
    on_success: change
    on_failure: change

dist: trusty
sudo: required

# https://secure.php.net/supported-versions.php
language: php
php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm

matrix:
  allow_failures:
    - php: hhvm

# addons:
#   mariadb: '10.1'

before_script:
  - git clone https://github.com/eustasy/normal-checks.git
  - cd normal-checks
  - git checkout 4256f55ef631900df06ca5c6167e21e6ed4cf55b
  - cd ../

script:
  - ./normal-checks/check-config.sh
  - ./normal-checks/check-permissions.sh
  - ./normal-checks/check-javascript.sh
  - ./normal-checks/check-css.sh
  - ./normal-checks/check-php.sh
  - php normal-checks/check-json.php
  - php normal-checks/check-xml.php
#   - mysql -u root -p="" -e 'CREATE DATABASE IF NOT EXISTS tests_db;'  
#   - mysql -u root -p="" tests_db < scripts/bd.sql

notifications:
  email:
    recipients:
      - lewisgoddard@eustasy.org
    on_success: change
    on_failure: change

Use more PHP supported versions, and add support for testing SQL files (maybe)
Use more PHP supported versions, and add support for testing SQL files (maybe)