framework/.travis.yml

44 lines
698 B
YAML
Raw Normal View History

language: php
sudo: false
env:
global:
- DB=mariadb
addons:
mariadb: '10.2'
php:
2017-02-04 04:53:39 +08:00
- 7.1
2017-10-05 19:57:31 +08:00
- 7.2
matrix:
fast_finish: true
include:
- php: 7.1
addons: # to prevent mariadb
services: mysql
env:
- DB=mysql
- php: 7.2
addons: # to prevent mariadb
services: mysql
env:
- DB=mysql
before_install:
- if [[ "$DB" == "mysql" || "$DB" == "mariadb" ]]; then mysql -e 'CREATE DATABASE flarum;'; fi
before_script:
2016-01-28 15:06:33 +08:00
- composer self-update
- composer install
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
notifications:
email:
on_failure: change
after_success:
- bash <(curl -s https://codecov.io/bash)