nc-vue-register/.travis.yml

54 lines
922 B
YAML

sudo: false
language: php
php:
- 7.3
- 7.4
cache:
directories:
- $HOME/.composer/cache/files
services:
- mysql
- postgresql
addons:
apt:
packages:
- libxml2-utils
env:
global:
- APP_NAME=registration
- CORE_BRANCH=stable21
- DB=sqlite
matrix:
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
matrix:
include:
- php: 7.3
env: DB=mysql
- php: 7.3
env: DB=pgsql
- php: 7.2
env: CORE_BRANCH=stable20
fast_finish: true
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:
# Run PHP tests
- . ${BUILD_APP_MODULE_DIR}/tests/scripts/phpunit.sh