-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
489 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# PHP PSR-2 Coding Standards | ||
# http://www.php-fig.org/psr/psr-2/ | ||
|
||
root = true | ||
|
||
[*.php] | ||
charset = utf-8 | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
max_line_length = 80 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/spec export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.scrutinizer.yml export-ignore | ||
.travis.yml export-ignore | ||
phpunit.xml.dist export-ignore | ||
infection.json.dist export-ignore | ||
grumphp.yml.dist export-ignore | ||
phpspec.yml.dist export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# https://github.com/probot/settings | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
enforce_admins: false | ||
required_pull_request_reviews: | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
required_approving_review_count: 1 | ||
required_status_checks: | ||
contexts: | ||
- "Grumphp" | ||
strict: false | ||
restrictions: null | ||
|
||
labels: | ||
- name: bug | ||
color: ee0701 | ||
|
||
- name: dependencies | ||
color: 0366d6 | ||
|
||
- name: enhancement | ||
color: 0e8a16 | ||
|
||
- name: question | ||
color: cc317c | ||
|
||
- name: security | ||
color: ee0701 | ||
|
||
- name: stale | ||
color: eeeeee | ||
|
||
repository: | ||
allow_merge_commit: true | ||
allow_rebase_merge: false | ||
allow_squash_merge: false | ||
default_branch: master | ||
description: "Generators and iterators, permutations and combinations." | ||
topics: math,numbers,permutations,combinations,iterators,fibonacci,prime numbers,product | ||
has_downloads: true | ||
has_issues: true | ||
has_pages: false | ||
has_projects: false | ||
has_wiki: false | ||
name: phptree | ||
private: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
name: "Continuous Integration" | ||
|
||
jobs: | ||
grumphp: | ||
name: "Grumphp" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-binary: | ||
- php7.1 | ||
- php7.2 | ||
- php7.3 | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: "Composer install" | ||
run: ${{ matrix.php-binary }} $(which composer) install --no-interaction --no-progress --no-suggest | ||
|
||
- name: "Composer install lowest dependencies" | ||
if: matrix.dependencies == 'lowest' | ||
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest --prefer-lowest | ||
|
||
- name: "Install Graphviz" | ||
run: sudo apt-get install graphviz | ||
|
||
- name: "Run Grumphp" | ||
run: ${{ matrix.php-binary }} vendor/bin/grumphp run | ||
env: | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
|
||
- name: "Scrutinizer" | ||
run: wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,8 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Composer template | ||
composer.phar | ||
/vendor/ | ||
|
||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock | ||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff: | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/dictionaries | ||
|
||
# Sensitive or high-churn files: | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.xml | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
|
||
# Gradle: | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# CMake | ||
cmake-build-debug/ | ||
|
||
# Mongo Explorer plugin: | ||
.idea/**/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
/.php_cs.cache | ||
/composer.lock | ||
/vendor | ||
/build | ||
/.php_cs.cache | ||
/example/ | ||
/.idea/ | ||
/test.php | ||
/build/ | ||
/phpspec.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
{ | ||
"name": "drupol/phpermutations", | ||
"description": "Generators and iterators, permutations and combinations.", | ||
"type": "library", | ||
"description": "Generators and iterators, permutations and combinations.", | ||
"keywords": [ | ||
"math", | ||
"numbers", | ||
"permutations", | ||
"combinations", | ||
"iterators", | ||
"fibonacci", | ||
"prime numbers", | ||
"product" | ||
], | ||
"homepage": "https://github.com/drupol/phpermutations", | ||
"keywords": ["math", "numbers", "permutations", "combinations", "iterators", "fibonacci", "prime numbers", "product"], | ||
"license": "GPL-3.0-only", | ||
"support": { | ||
"issues": "https://github.com/drupol/phpermutations/issues", | ||
"source": "https://github.com/drupol/phpermutations" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Pol Dellaiera", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">= 5.6" | ||
"php": ">= 7.1.3" | ||
}, | ||
"require-dev": { | ||
"drupol/php-conventions": "^1.3", | ||
"phpunit/phpunit": "^5 || ^6", | ||
"phpunit/php-code-coverage": "^4 || ^5" | ||
"drupol/php-conventions": "^1.6.8", | ||
"phpunit/php-code-coverage": "^4 || ^5", | ||
"phpunit/phpunit": "^6 || ^7", | ||
"symfony/process": "^4.4.1" | ||
}, | ||
"scripts": { | ||
"phpunit": "./vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c tests/phpunit.xml tests", | ||
"grumphp": "./vendor/bin/grumphp run" | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"drupol\\phpermutations\\": "src/", | ||
"drupol\\phpermutations\\Tests\\": "tests/src/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
"scripts": { | ||
"grumphp": "./vendor/bin/grumphp run", | ||
"phpunit": "./vendor/bin/phpunit --coverage-clover build/logs/clover.xml -c tests/phpunit.xml tests" | ||
}, | ||
"support": { | ||
"issues": "https://github.com/drupol/phpermutations/issues", | ||
"source": "https://github.com/drupol/phpermutations" | ||
} | ||
} |
Oops, something went wrong.