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
|
|
|
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
|
2019-02-01 04:23:27 +08:00
|
|
|
- mysql -e 'CREATE DATABASE flarum_test;'
|
2015-05-18 14:15:12 +08:00
|
|
|
|
2019-01-02 04:02:18 +08:00
|
|
|
before_script:
|
|
|
|
- echo 'error_reporting = E_ALL' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
|
|
|
2015-05-18 14:15:12 +08:00
|
|
|
script:
|
2019-03-04 03:39:30 +08:00
|
|
|
- composer test:setup
|
2019-02-01 04:23:27 +08:00
|
|
|
- composer test
|
2018-06-20 11:50:31 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- php: 7.1
|
|
|
|
env: DB=mysql
|
|
|
|
|
|
|
|
- php: 7.2
|
|
|
|
env: DB=mysql
|
|
|
|
|
2018-12-20 01:09:36 +08:00
|
|
|
- php: 7.3
|
|
|
|
env: DB=mysql
|
2018-09-17 02:59:40 +08:00
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
- php: 7.1
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
env: DB=mariadb
|
|
|
|
|
|
|
|
- php: 7.2
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
env: DB=mariadb
|
|
|
|
|
2018-12-20 01:09:36 +08:00
|
|
|
- php: 7.3
|
|
|
|
addons:
|
|
|
|
mariadb: '10.2'
|
|
|
|
env: DB=mariadb
|
|
|
|
|
|
|
|
- php: 7.2
|
|
|
|
env: DB=mysql PREFIX=forum_
|
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
- 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
|