updated-packages
This commit is contained in:
85
vendor/codacy/coverage/.circleci/config.yml
vendored
Normal file
85
vendor/codacy/coverage/.circleci/config.yml
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
version: 2.1
|
||||
|
||||
orbs:
|
||||
codacy: codacy/base@1.2.1
|
||||
|
||||
references:
|
||||
default_php_job: &default_php_job
|
||||
docker:
|
||||
- image: circleci/php:7.4-node-browsers
|
||||
working_directory: ~/workdir
|
||||
workspace_attach: &workspace_attach
|
||||
attach_workspace:
|
||||
at: ~/
|
||||
workspace_persist: &workspace_persist
|
||||
persist_to_workspace:
|
||||
paths:
|
||||
- workdir/*
|
||||
root: ~/
|
||||
cache_restore: &cache_restore
|
||||
restore_cache:
|
||||
keys:
|
||||
- composer-v1-{{ checksum "composer.lock" }}
|
||||
- composer-v1-
|
||||
cache_save: &cache_save
|
||||
save_cache:
|
||||
key: composer-v1-{{ checksum "composer.lock" }}
|
||||
paths:
|
||||
- vendor
|
||||
|
||||
jobs:
|
||||
test:
|
||||
<<: *default_php_job
|
||||
steps:
|
||||
- *workspace_attach
|
||||
- *cache_restore
|
||||
- run:
|
||||
command: composer install
|
||||
- *cache_save
|
||||
- run:
|
||||
command: composer test
|
||||
- *workspace_persist
|
||||
publish:
|
||||
<<: *default_php_job
|
||||
steps:
|
||||
- *workspace_attach
|
||||
- run:
|
||||
command: |
|
||||
composer codacyCoverage
|
||||
composer build
|
||||
- *workspace_persist
|
||||
publish_circleci_artifacts:
|
||||
machine: true
|
||||
working_directory: ~/workdir
|
||||
steps:
|
||||
- *workspace_attach
|
||||
- store_artifacts:
|
||||
path: ~/workdir/artifacts/
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
compile_test_deploy:
|
||||
jobs:
|
||||
- codacy/checkout_and_version
|
||||
- test:
|
||||
requires:
|
||||
- codacy/checkout_and_version
|
||||
- publish:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- publish_circleci_artifacts:
|
||||
requires:
|
||||
- publish
|
||||
- codacy/publish_ghr:
|
||||
path: ~/workdir/artifacts/
|
||||
requires:
|
||||
- publish_circleci_artifacts
|
||||
- codacy/tag_version:
|
||||
name: tag_version
|
||||
context: CodacyAWS
|
||||
requires:
|
||||
- codacy/publish_ghr
|
4
vendor/codacy/coverage/.github/CODEOWNERS
vendored
Normal file
4
vendor/codacy/coverage/.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
* @lolgab @ljmf00 @andreaTP @rtfpessoa @bmbferreira @DReigada @pedrocodacy
|
||||
|
||||
*.yml @h314to @paulopontesm
|
||||
|
18
vendor/codacy/coverage/.travis.yml
vendored
18
vendor/codacy/coverage/.travis.yml
vendored
@@ -1,18 +0,0 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- '7.2'
|
||||
- nightly
|
||||
|
||||
before_script:
|
||||
# In case of timeouts and build failures you may want to prepend 'travis_retry' to the following commands:
|
||||
- composer install -n
|
||||
|
||||
# Explicitly use the phpunit from composer, not any system-wide found
|
||||
script:
|
||||
- php vendor/bin/phpunit --coverage-clover build/coverage/xml tests
|
||||
|
||||
after_success:
|
||||
- php vendor/bin/codacycoverage clover build/coverage/xml
|
4
vendor/codacy/coverage/README.md
vendored
4
vendor/codacy/coverage/README.md
vendored
@@ -1,3 +1,7 @@
|
||||
# Deprecated
|
||||
|
||||
This repository is no longer maintained. As an alternative, check [codacy-coverage-reporter](https://github.com/codacy/codacy-coverage-reporter) to send your test coverage results to your Codacy dashboard.
|
||||
|
||||
[](https://www.codacy.com/app/Codacy/php-codacy-coverage)
|
||||
[](https://www.codacy.com/app/Codacy/php-codacy-coverage)
|
||||
[](https://circleci.com/gh/codacy/php-codacy-coverage)
|
||||
|
9
vendor/codacy/coverage/box.json
vendored
9
vendor/codacy/coverage/box.json
vendored
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"directories": [
|
||||
"src",
|
||||
"vendor"
|
||||
],
|
||||
"main": "bin/codacycoverage",
|
||||
"output": "build/codacy-coverage.phar",
|
||||
"stub": true
|
||||
}
|
26
vendor/codacy/coverage/circle.yml
vendored
26
vendor/codacy/coverage/circle.yml
vendored
@@ -1,26 +0,0 @@
|
||||
machine:
|
||||
php:
|
||||
version: 7.1.6
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- curl -s http://getcomposer.org/installer | php
|
||||
- php composer.phar install -n
|
||||
- go get github.com/aktau/github-release
|
||||
- wget -O box.phar https://github.com/box-project/box2/releases/download/2.7.5/box-2.7.5.phar
|
||||
|
||||
test:
|
||||
post:
|
||||
- php vendor/bin/phpunit --coverage-clover build/coverage/xml tests
|
||||
|
||||
deployment:
|
||||
master:
|
||||
branch: master
|
||||
commands:
|
||||
- php bin/codacycoverage clover build/coverage/xml
|
||||
release:
|
||||
tag: /[0-9]+(\.[0-9]+)*/
|
||||
commands:
|
||||
- php -d phar.readonly=0 box.phar build
|
||||
- git config user.name $CIRCLE_PROJECT_USERNAME
|
||||
- github-release upload --user $CIRCLE_PROJECT_USERNAME --repo $CIRCLE_PROJECT_REPONAME --tag $CIRCLE_TAG --name codacy-coverage.phar --file build/codacy-coverage.phar
|
14
vendor/codacy/coverage/composer.json
vendored
14
vendor/codacy/coverage/composer.json
vendored
@@ -6,12 +6,20 @@
|
||||
"require": {
|
||||
"php": ">=5.3.3",
|
||||
"gitonomy/gitlib": ">=1.0",
|
||||
"symfony/console": "~2.5|~3.0|~4.0"
|
||||
"symfony/console": "~2.5|~3.0|~4.0|~5.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~6.5"
|
||||
"phpunit/phpunit": "~6.5",
|
||||
"clue/phar-composer": "^1.1"
|
||||
},
|
||||
"bin": ["bin/codacycoverage"],
|
||||
"scripts": {
|
||||
"test": "php vendor/bin/phpunit --coverage-clover build/coverage/xml tests",
|
||||
"codacyCoverage": "php bin/codacycoverage clover build/coverage/xml",
|
||||
"build": "mkdir -p artifacts && php -d phar.readonly=off ./vendor/bin/phar-composer build . artifacts/codacy-coverage.phar"
|
||||
},
|
||||
"bin": [
|
||||
"bin/codacycoverage"
|
||||
],
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
|
@@ -70,6 +70,8 @@ class Clover extends ConsoleCommand
|
||||
if ($output->isVerbose()) {
|
||||
$output->writeln($result);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,7 +102,7 @@ class Clover extends ConsoleCommand
|
||||
if ($projectToken == false) {
|
||||
throw new \InvalidArgumentException(
|
||||
"Cannot continue with execution as long as your project token is not set as an environmental variable."
|
||||
. PHP_EOL . "Please type: export CODACY_PROJECT_TOKEN=<YOUR TOKEN>"
|
||||
. PHP_EOL . "Please type: export CODACY_PROJECT_TOKEN=<YOUR TOKEN>"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user