richdocuments/.travis.yml

66 строки
1.7 KiB
YAML
Исходник Обычный вид История

language: php
php:
2014-12-18 17:35:59 +03:00
- 5.6
2015-07-18 23:26:17 +03:00
- 7
2014-10-29 19:27:53 +03:00
env:
global:
- CORE_BRANCH=master
- APP_NAME=richdocuments
2014-10-29 19:27:53 +03:00
matrix:
- DB=sqlite
2014-10-29 19:27:53 +03:00
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
2014-10-29 19:27:53 +03:00
2015-12-16 18:37:22 +03:00
sudo: true
2014-10-29 19:27:53 +03:00
before_install:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
# Add some output debugging information
- cd ../server
- ./occ check
- ./occ status
- ./occ app:list
2014-10-29 19:27:53 +03:00
script:
- cd apps/$APP_NAME/
# Test the app
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
- cd ../../
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
- cd apps/$APP_NAME/
# Run phpunit tests
- cd tests/
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
# Create coverage report
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
- cd ../
matrix:
2014-10-29 19:27:53 +03:00
matrix:
include:
- php: 5.6
2014-10-29 19:27:53 +03:00
env: DB=mysql
- php: 5.6
2014-10-29 19:27:53 +03:00
env: DB=pgsql
- php: 5.6
env: DB=mysql;CODECHECK=1
- php: 5.6
env: DB=mysql;CODECHECK=2
- php: 5.6
env: DB=mysql;JSTESTS=1
allow_failures:
- env: DB=mysql;CODECHECK=1
2014-12-18 17:35:59 +03:00
fast_finish: true