2015-05-18 14:15:12 +08:00
|
|
|
language: php
|
2018-04-13 13:25:30 +08:00
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
sudo: false
|
2018-05-29 11:51:22 +08:00
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
- $HOME/.npm
|
2018-05-30 16:36:00 +08:00
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
install:
|
2016-01-21 05:22:13 +08:00
|
|
|
- composer install
|
2018-06-20 11:50:31 +08:00
|
|
|
- mysql -e 'CREATE DATABASE flarum;'
|
2015-05-18 14:15:12 +08:00
|
|
|
|
|
|
|
script:
|
2016-06-05 07:46:29 +08:00
|
|
|
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
2015-05-18 14:15:12 +08:00
|
|
|
|
2016-03-03 18:50:09 +08:00
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2018-06-20 11:50:31 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- php: 7.1
|
|
|
|
env: DB=mysql
|
|
|
|
|
|
|
|
- php: 7.2
|
|
|
|
env: DB=mysql
|
|
|
|
|
|
|
|
- php: 7.1
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
env: DB=mariadb
|
|
|
|
|
|
|
|
- php: 7.2
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
env: DB=mariadb
|
|
|
|
|
|
|
|
- stage: build
|
|
|
|
language: generic
|
|
|
|
if: branch = master AND type = push
|
|
|
|
install: skip
|
|
|
|
script: bash .travis/build.sh
|
|
|
|
-k $encrypted_678139e2bc67_key
|
|
|
|
-i $encrypted_678139e2bc67_iv
|
|
|
|
after_success: skip
|