Skip to content

Commit

Permalink
Merge pull request #6 from readdle/improvement/updated-php-nodejs-eng…
Browse files Browse the repository at this point in the history
…ines

Improvement/updated php nodejs engines
  • Loading branch information
melya authored May 3, 2020
2 parents e092dea + 9481a2e commit 77bb048
Show file tree
Hide file tree
Showing 24 changed files with 5,945 additions and 558 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
.idea
composer.phar
vendor/
node_modules/
node_modules
npm-debug.log*
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

php:
- 7.2
- 7.3
- 7.4snapshot
- nightly

matrix:
fast_finish: true
allow_failures:
- php: nightly

install:
- composer install --prefer-dist -o

script:
composer run ci

jobs:
include:
- language: node_js
node_js: 12
install:
- npm install
script:
- npm test
59 changes: 49 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,61 @@
{
"name": "readdle/crypto",
"version": "0.0.3",
"license": "MIT",
"version": "1.0.0",
"type": "library",
"description": "rdcrypto - unified library for encrypt/decrypt values",
"authors": [
{
"name": "Vladimir Melnik",
"email": "[email protected]"
}
],
"config": {
"platform": {
"php": "7.2"
},
"sort-packages": true
},
"require": {
"php": ">=7.1",
"php": ">=7.2",
"ext-openssl": "*"
},

"require-dev": {
"phpunit/phpunit": "^6"
"escapestudios/symfony2-coding-standard": "^3.9",
"pheromone/phpcs-security-audit": "^2.0",
"phpcompatibility/php-compatibility": "^9.3",
"phpunit/phpunit": "^8.4",
"slevomat/coding-standard": "^5.0",
"squizlabs/php_codesniffer": "^3.5"
},

"autoload": {
"psr-4": {"Readdle\\": "src/Readdle/"}
"exclude-from-classmap": ["*Test.php"],
"classmap": [
"src/"
]
},
"autoload-dev": {
"classmap": [
"src/"
]
},

"scripts": {
"test": "phpunit"
"register-standards": "phpcs --config-set installed_paths $(pwd),$(pwd)/vendor/slevomat/coding-standard,$(pwd)/vendor/phpcompatibility/php-compatibility,$(pwd)/vendor/pheromone/phpcs-security-audit,$(pwd)/vendor/escapestudios/symfony2-coding-standard 2>/dev/null || true",
"post-install-cmd": [
"@register-standards"
],
"test": [
"phpunit"
],
"lint-autofix": [
"phpcbf -s -n --standard=$(pwd)/phpcs.ruleset.xml $(pwd)/src/ 2>/dev/null || true"
],
"lint": [
"phpcs -s -n --standard=$(pwd)/phpcs.ruleset.xml $(pwd)/src/"
],
"ci": [
"@lint",
"@test"
]
}
}


Loading

0 comments on commit 77bb048

Please sign in to comment.