48 строки
908 B
YAML
48 строки
908 B
YAML
language: php
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
|
|
env:
|
|
global:
|
|
- CORE_BRANCH=master
|
|
- APP_NAME=files_antivirus
|
|
matrix:
|
|
- DB=sqlite
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
before_install:
|
|
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
- cd ../core
|
|
- php occ app:enable $APP_NAME
|
|
|
|
script:
|
|
# Test lint
|
|
- cd ../core/apps/$APP_NAME
|
|
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
|
|
|
|
# Run phpunit tests
|
|
- cd tests
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
# Create coverage report
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.4
|
|
env: DB=mysql
|
|
- php: 5.4
|
|
env: DB=pgsql
|
|
- php: 5.4
|
|
env: DB=oracle
|
|
allow_failures:
|
|
- php: hhvm
|
|
fast_finish: true
|