blob: dd3eb1da3eb80a234ccc6d85f746babb5a059b90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
language: php
php:
- 5.6
- 7
env:
global:
- CORE_BRANCH=master
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
sudo: true
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh richdocuments $CORE_BRANCH $DB
script:
# Test lint
- cd ../core/apps/richdocuments
- find . -name \*.php -exec php -l "{}" \;
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
matrix:
include:
- php: 5.6
env: DB=mysql
- php: 5.6
env: DB=pgsql
fast_finish: true
|