try adding code coverage things

pull/249/head
David Goodwin 6 years ago
parent 2a0f708529
commit 7718ca808d

@ -10,6 +10,7 @@ services:
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
- $HOME/vendor
before_install: before_install:
- mysql -e 'CREATE DATABASE postfixadmin;' - mysql -e 'CREATE DATABASE postfixadmin;'
@ -17,11 +18,15 @@ before_install:
before_script: before_script:
- composer install - travis_retry composer install --no-interaction --prefer-source --dev
- mkdir -p build/logs
script: script:
- composer build - composer build
- composer test-sqlite - DATABASE=sqlite vendor/bin/phpunit tests/
- composer test-mysql - DATABASE=mysql vendor/bin/phpunit --coverage-clover=build/logs/clover.xml tests/
- composer test-postgresql - DATABASE=postgresql vendor/bin/phpunit tests/
after_success:
- travis_retry bash <(curl -s https://codecov.io/bash) -f build/logs/clover.xml
- travis_retry php vendor/bin/php-coveralls

@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.org/postfixadmin/postfixadmin.svg?branch=master)](https://travis-ci.org/postfixadmin/postfixadmin) [![Build Status](https://travis-ci.org/postfixadmin/postfixadmin.svg?branch=master)](https://travis-ci.org/postfixadmin/postfixadmin)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/postfixadmin/Lobby) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/postfixadmin/Lobby)
[![codecov](https://codecov.io/gh/postfixadmin/postfixadmin/branch/master/graph/badge.svg)](https://codecov.io/gh/postfixadmin/postfixadmin)
[![Coverage Status](https://coveralls.io/repos/github/postfixadmin/postfixadmin/badge.svg?branch=master)](https://coveralls.io/github/postfixadmin/postfixadmin?branch=master)
# PostfixAdmin # PostfixAdmin

@ -13,9 +13,7 @@
"check-format": "php-cs-fixer fix --ansi --dry-run --diff", "check-format": "php-cs-fixer fix --ansi --dry-run --diff",
"format": "php-cs-fixer fix --ansi", "format": "php-cs-fixer fix --ansi",
"lint": "@php ./vendor/bin/parallel-lint --exclude vendor/ --exclude lib/block_random_int.php --exclude lib/array_column.php .", "lint": "@php ./vendor/bin/parallel-lint --exclude vendor/ --exclude lib/block_random_int.php --exclude lib/array_column.php .",
"test-sqlite": "DATABASE=sqlite ./vendor/bin/phpunit tests/", "test": "DATABASE=sqlite ./vendor/bin/phpunit tests/",
"test-mysql": "DATABASE=mysql ./vendor/bin/phpunit tests/",
"test-postgresql": "DATABASE=postgresql ./vendor/bin/phpunit tests/",
"test-fixup": "mkdir -p templates_c ; test -f config.local.php || touch config.local.php", "test-fixup": "mkdir -p templates_c ; test -f config.local.php || touch config.local.php",
"psalm": "@php ./vendor/bin/psalm --no-cache --show-info=false " "psalm": "@php ./vendor/bin/psalm --no-cache --show-info=false "
}, },
@ -23,13 +21,14 @@
"php": ">=5.2" "php": ">=5.2"
}, },
"require-dev": { "require-dev": {
"ext-sqlite3": "*",
"ext-mysqli": "*", "ext-mysqli": "*",
"php": ">7.2.0", "ext-sqlite3": "*",
"friendsofphp/php-cs-fixer": "*", "friendsofphp/php-cs-fixer": "*",
"vimeo/psalm":"3.0.8",
"jakub-onderka/php-parallel-lint": "^1.0", "jakub-onderka/php-parallel-lint": "^1.0",
"php": ">7.2.0",
"php-coveralls/php-coveralls" : "*",
"phpunit/phpunit": "^6.0", "phpunit/phpunit": "^6.0",
"vimeo/psalm":"3.0.8",
"zendframework/zendframework1": "^1.12.0" "zendframework/zendframework1": "^1.12.0"
}, },
"autoload": { "autoload": {

Loading…
Cancel
Save