groupfolders/.travis.yml

45 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2017-04-06 15:57:31 +02:00
language: php
php:
- 7.2
- 7.3
2020-01-30 14:17:19 +01:00
- 7.4
2017-04-06 15:57:31 +02:00
env:
global:
- APP_NAME=groupfolders
- DB=sqlite
matrix:
2020-01-30 14:17:19 +01:00
- CORE_BRANCH=stable18
2017-04-06 15:57:31 +02:00
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
before_install:
- cd ../
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
- mv $APP_NAME nextcloud/apps/
before_script:
# fill nextcloud with default configs and enable the app
- cd nextcloud
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable $APP_NAME
- ./occ app:check-code $APP_NAME -c strong-comparison
- ./occ app:check-code $APP_NAME -c deprecation
- cd apps/$APP_NAME
2019-05-08 15:15:34 +02:00
- composer install
2017-04-06 15:57:31 +02:00
script:
2019-05-08 15:15:34 +02:00
# check syntax
- vendor/bin/parallel-lint --exclude app --exclude vendor .
2019-05-08 15:15:34 +02:00
# Run phpunit tests
- cd tests
- ../vendor/bin/phpunit --configuration phpunit.xml
2017-04-06 15:57:31 +02:00
# Create coverage report
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml