digitalbiblesociety/dbp

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dist: trusty
language: php

php:
  - 7.2

branches:
  only:
    - master
    - dev

addons:
  hosts:
  - dbp.test

before_install:
  - mysql -e 'CREATE DATABASE dbp;'
  - mysql -e 'CREATE DATABASE dbp_users;'

before_script:
  - phpenv config-add travis.php.ini
  - cp .env.travis .env
  - composer self-update
  - composer install --no-interaction --prefer-dist --no-suggest
  - npm install
  - php artisan key:generate
  - php artisan migrate --seed

script:
  - vendor/bin/phpunit --group=travis

services:
  - mysql

cache:
  directories:
    - node_modules
    - vendor

env:
  - TRAVIS_NODE_VERSION="4"