-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
Christoph Wurst authoredSigned-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
.travis.yml 4.02 KiB
sudo: required
dist: trusty
language: php
php:
- 7.1
- 7.2
- 7.3
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- php5-pgsql
- libxml2-utils
services:
- docker
- postgresql
env:
global:
- CORE_BRANCH=master
- PHP_COVERAGE=FALSE
- TEST_SUITE=TEST-PHP
matrix:
- DB=mysql TEST_SUITE=LINT-PHP
- DB=mysql TEST_SUITE=TEST-PHP
matrix:
include:
- php: 7.3
env: "DB=mysql TEST_SUITE=TEST-JS"
- php: 7.3
env: "DB=mysql TEST_SUITE=PACKAGE"
- php: 7.1
env: "DB=mysql PHP_COVERAGE=TRUE"
- php: 7.3
env: "DB=sqlite CORE_BRANCH=v16.0.0beta3"
- php: 7.3
env: "DB=pgsql CORE_BRANCH=v16.0.0alpha1"
fast_finish: true
branches:
only:
- master
- "/^stable\\d+(\\.\\d+)?$/"
- /^v\d++(\.\d+)?+(\.\d+)?+(\.\d+)?$/
- refactor/vue
cache:
directories:
- "$HOME/.composer/cache/files"
- "$HOME/.npm"
before_install:
- php --info
# Install Krankerl
- wget https://github.com/ChristophWurst/krankerl/releases/download/v0.10.1/krankerl_0.10.1_amd64.deb
- sudo dpkg -i krankerl_0.10.1_amd64.deb
# Set up DB
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi
- composer self-update