2014-03-19 10:23:02 +00:00
|
|
|
language: php
|
2016-03-07 13:47:38 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2014-03-19 10:23:02 +00:00
|
|
|
php:
|
2018-07-28 16:10:39 +00:00
|
|
|
- 7.1
|
2018-04-16 00:12:50 +00:00
|
|
|
- 7.0
|
|
|
|
- 5.6
|
2014-06-24 14:11:51 +00:00
|
|
|
- 5.5
|
2018-07-28 16:11:47 +00:00
|
|
|
script:
|
2018-07-28 16:33:13 +00:00
|
|
|
- grep --exclude-dir=../.git/ --exclude-dir=../vendor/ -l -r -e '#!/bin/[bash|sh]' ../ | uniq | xargs shellcheck
|
2018-07-28 16:11:47 +00:00
|
|
|
- ../vendor/bin/phpcs ../
|
|
|
|
- ../vendor/bin/phpunit --coverage-clover=coverage.clover
|
2014-03-21 14:19:07 +00:00
|
|
|
before_script:
|
2018-07-28 18:00:35 +00:00
|
|
|
- composer require phpunit/dbunit=3.0.1 squizlabs/php_codesniffer
|
2016-03-07 13:58:53 +00:00
|
|
|
- mysql -e 'create database alternc_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
|
2014-03-21 14:19:07 +00:00
|
|
|
- cd phpunit
|
|
|
|
after_script:
|
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|