registration/.travis.yml

76 lines
2.0 KiB
YAML

sudo: false
language: php
php:
- 7.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache/files
services:
- mysql
- postgresql
addons:
apt:
packages:
- libxml2-utils
env:
global:
- PHP_COVERAGE=FALSE
matrix:
# Nextcloud 16+
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable18 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable17 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=stable16 DB=sqlite
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable18 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable17 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=stable16 DB=mysql
- CORE_TYPE=nextcloud CORE_BRANCH=master DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable18 DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable17 DB=pgsql
- CORE_TYPE=nextcloud CORE_BRANCH=stable16 DB=pgsql
# ownCloud 10.4+
# ownCloud does not seem to maintain old stable branches anymore, so I can only test master
- CORE_TYPE=owncloud CORE_BRANCH=master DB=sqlite
- CORE_TYPE=owncloud CORE_BRANCH=master DB=mysql
- CORE_TYPE=owncloud CORE_BRANCH=master DB=pgsql
matrix:
fast_finish: true
exclude:
include:
before_install:
# XDebug is only needed if we report coverage -> speeds up other builds
- if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi
install:
- . ./tests/scripts/core-download.sh
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-database.sh
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-setup.sh
script:
# Check info.xml schema validity
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-appinfo.sh
# Check PHP syntax errors
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/lint-php.sh
# Run app code checker but do not fail, as we have to use private API for now
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/app-check-code.sh || true
# Run PHP tests
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/phpunit.sh