language: php
sudo: required
php:
  - 5.5
  - 5.6
  - 7.0

env:
  global:
    - NC_BRANCH=master
  matrix:
    - NC_DATABASE=mysql

matrix:
  allow_failures:
  include:
    - php: 5.5
      env: NC_DATABASE=sqlite
    - php: 5.5
      env: NC_DATABASE=pgsql
    - php: 5.6
      env: NC_DATABASE=sqlite
    - php: 5.6
      env: NC_DATABASE=pgsql
    - php: 7.0
      env: NC_DATABASE=sqlite
    - php: 7.0
      env: NC_DATABASE=pgsql

install:
  - phpenv config-add tests/travis/php.ini
  - ./tests/prepare-ci-tests.sh

script:
  - cd ${TRAVIS_BUILD_DIR}/../nextcloud/apps/spreedme
  - phpunit -c phpunit.xml
  - phpunit -c phpunit.integration.xml

language: php
sudo: required
php:
  - 5.5
  - 5.6
  - 7.0

env:
  global:
    - NC_BRANCH=master
  matrix:
    - NC_DATABASE=mysql

matrix:
  allow_failures:
    - php: 7.0
  include:
    - php: 5.5
      env: NC_DATABASE=sqlite
    - php: 5.5
      env: NC_DATABASE=pgsql
    - php: 5.6
      env: NC_DATABASE=sqlite
    - php: 5.6
      env: NC_DATABASE=pgsql
    - php: 7.0
      env: NC_DATABASE=sqlite
    - php: 7.0
      env: NC_DATABASE=pgsql

install:
  - phpenv config-add tests/travis/php.ini
  - ./tests/prepare-ci-tests.sh

script:
  - cd ${TRAVIS_BUILD_DIR}/../nextcloud/apps/spreedme
  - phpunit -c phpunit.xml
  - phpunit -c phpunit.integration.xml

Allow CI test failures for PHP7 (phpunit > 5.4)
Allow CI test failures for PHP7 (phpunit > 5.4)

See https://github.com/nextcloud/server/issues/5235
