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-10-22 15:00:38 +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-10-22 15:00:38 +00:00
|
|
|
script:
|
|
|
|
- grep --exclude-dir=../.git/ --exclude-dir=../vendor/ -l -r -e '#!/bin/[bash|sh]' ../ | uniq | xargs shellcheck
|
|
|
|
- ../vendor/bin/phpcs --ignore=../vendor/ ../
|
|
|
|
- ../vendor/bin/phpunit --coverage-clover=coverage.clover
|
2014-03-21 14:19:07 +00:00
|
|
|
before_script:
|
2018-10-22 15:00:38 +00:00
|
|
|
- composer require 'phpunit/dbunit=<3.0.2' 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
|