updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View 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

View File

@@ -0,0 +1,4 @@
* @lolgab @ljmf00 @andreaTP @rtfpessoa @bmbferreira @DReigada @pedrocodacy
*.yml @h314to @paulopontesm

View File

@@ -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

View File

@@ -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.
[![Codacy Badge](https://api.codacy.com/project/badge/grade/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage)
[![Codacy Badge](https://api.codacy.com/project/badge/coverage/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage)
[![Circle CI](https://circleci.com/gh/codacy/php-codacy-coverage.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/codacy/php-codacy-coverage)

View File

@@ -1,9 +0,0 @@
{
"directories": [
"src",
"vendor"
],
"main": "bin/codacycoverage",
"output": "build/codacy-coverage.phar",
"stub": true
}

View File

@@ -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

View File

@@ -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/"

View File

@@ -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>"
);
}