language: php
sudo: false
notifications:
  email: false

php:
  - 7.2

env:
  global:
    - PLUGIN=GoogleAuth
    - KANBOARD_REPO=https://github.com/kanboard/kanboard.git
  matrix:
    - DB=sqlite
    - DB=postgres

matrix:
  fast_finish: true

install:
  - git clone --depth 1 $KANBOARD_REPO
  - ln -s $TRAVIS_BUILD_DIR kanboard/plugins/$PLUGIN

before_script:
  - cd kanboard
  - phpenv config-add tests/php.ini
  - composer install
  - ls -la plugins/

script:
  - ./vendor/bin/phpunit -c tests/units.$DB.xml plugins/$PLUGIN/Test/

language: php
sudo: false
notifications:
  email: false

services:
  - postgresql
  - mysql

php:
  - 7.2

env:
  global:
    - PLUGIN=GoogleAuth
    - KANBOARD_REPO=https://github.com/kanboard/kanboard.git
  matrix:
    - DB=sqlite
    - DB=postgres

matrix:
  fast_finish: true

install:
  - git clone --depth 1 $KANBOARD_REPO
  - ln -s $TRAVIS_BUILD_DIR kanboard/plugins/$PLUGIN

before_script:
  - cd kanboard
  - phpenv config-add tests/php.ini
  - composer install
  - ls -la plugins/

script:
  - ./vendor/bin/phpunit -c tests/units.$DB.xml plugins/$PLUGIN/Test/

Add postgres service to Travis config
Add postgres service to Travis config
