mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-14 11:54:26 +01:00
try out a universal test second shot trying nc and oc, throw away php 5.4 and server versions below 9.0 all env information in one line, otherwise to many useless builds are composed drop some cases, fix typo fix url, further reduce number of tests scenarios url fix, and further reduce tests scenarios moar fixes test against the desired server branch attempt to reduce more test scenarios more url fixes fix branch, excludes did not work adjust version info
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
language: php
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
- 7
|
|
|
|
env:
|
|
global:
|
|
- APP_NAME=bookmarks
|
|
|
|
matrix:
|
|
# owncloud setups: only sqlite, only >=stable9.1
|
|
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
|
|
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
|
|
|
|
# nextcloud setups, full tests for master+latest stable branch, older only sqlite
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
|
|
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
|
|
|
|
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable9
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^stable\d+(\.\d+)?$/
|
|
|
|
before_install:
|
|
# - composer install
|
|
- wget https://raw.githubusercontent.com/$SERVER/before_install.sh
|
|
- bash ./before_install.sh $APP_NAME $SERVER_BRANCH $DB
|
|
- cd ../core || cd ../server
|
|
- php occ app:enable $APP_NAME
|
|
|
|
script:
|
|
# Test lint
|
|
- cd apps/$APP_NAME
|
|
- 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:
|
|
fast_finish: true
|