2020-03-18 12:08:40 -04:00
|
|
|
dist: xenial
|
2020-03-18 12:16:35 -04:00
|
|
|
os: linux
|
2020-03-18 12:08:40 -04:00
|
|
|
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- ppc64le
|
2015-07-17 15:38:06 -04:00
|
|
|
|
2012-03-22 15:07:27 -04:00
|
|
|
language: php
|
2012-03-22 15:21:59 -04:00
|
|
|
|
2019-12-11 16:41:39 -05:00
|
|
|
services:
|
2020-03-18 12:23:28 -04:00
|
|
|
- if: arch = amd64
|
|
|
|
- [ mysql, postgresql ]
|
|
|
|
- if: arch != amd64
|
|
|
|
- mysql
|
2019-12-11 16:41:39 -05:00
|
|
|
|
2012-03-23 09:34:29 -04:00
|
|
|
php:
|
2018-01-19 10:53:40 -05:00
|
|
|
- 7.2
|
2019-12-11 16:32:21 -05:00
|
|
|
- 7.3
|
|
|
|
- 7.4
|
2015-06-04 15:24:44 -04:00
|
|
|
- nightly
|
2014-02-06 20:01:31 -05:00
|
|
|
|
2012-03-22 15:59:03 -04:00
|
|
|
before_script:
|
2020-03-18 12:23:28 -04:00
|
|
|
- if: arch = amd64
|
|
|
|
- psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
|
|
|
|
- psql -c 'create database test;' -U postgres
|
2014-04-15 16:34:33 -04:00
|
|
|
- mysql -e 'create database IF NOT EXISTS test;'
|
2020-03-18 12:23:28 -04:00
|
|
|
- composer install --ignore-platform-reqs
|
2012-03-22 15:21:59 -04:00
|
|
|
|
2014-02-25 11:59:28 -05:00
|
|
|
script:
|
|
|
|
- mkdir -p build/logs
|
2015-11-10 21:03:50 -05:00
|
|
|
- cd build
|
2018-01-22 12:44:09 -05:00
|
|
|
- ../vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml
|
2015-11-10 21:03:50 -05:00
|
|
|
- cd ../
|
2014-02-25 11:59:28 -05:00
|
|
|
|
|
|
|
after_script:
|
2014-03-20 10:49:15 -04:00
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
2015-08-25 16:52:15 -04:00
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
|
|
|
|
2020-03-18 12:08:40 -04:00
|
|
|
jobs:
|
2015-08-25 16:52:15 -04:00
|
|
|
allow_failures:
|
2016-10-12 22:26:14 -04:00
|
|
|
- php: nightly
|
2020-03-18 12:16:35 -04:00
|
|
|
- arch: [arm64, ppc64le]
|