Skip to content

Commit

Permalink
Merge pull request #2 from mremi/fixes-and-ci
Browse files Browse the repository at this point in the history
fix(namespace): update namespaces and add travis
  • Loading branch information
mremi authored Jan 3, 2019
2 parents 4d6cdf2 + 984021a commit 0556d80
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 3,446 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/build/
/vendor/

/.php_cs.cache
/composer.lock
18 changes: 0 additions & 18 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file is part of the phpstan/phpstan-banned-code project.
* This file is part of the ekino/phpstan-banned-code project.
*
* (c) Ekino
*
Expand All @@ -10,7 +10,7 @@
*/

$header = <<<EOF
This file is part of the phpstan/phpstan-banned-code project.
This file is part of the ekino/phpstan-banned-code project.
(c) Ekino
Expand Down
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

php:
- '7.1'
- '7.2'

dist: trusty
sudo: false

cache:
directories:
- $HOME/.composer/cache/files

before_install: composer self-update

install: make app-install

script:
- make app-composer-validate
- make app-test-with-code-coverage
- make app-static-analysis
- make app-cs-check
- make app-security-check
33 changes: 21 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
{
"name": "ekino/phpstan-banned-code",
"type": "library",
"description": "Detected banned code using PHPStan",
"keywords": ["PHPStan", "Code Quality"],
"homepage": "https://github.com/ekino/phpstan-banned-code",
"license": "MIT",
"type": "library",
"autoload": {
"psr-4": {
"PHPStan\\": "src"
"authors": [
{
"name": "Rémi Marseille",
"email": "remi.marseille@ekino.com",
"homepage": "https://www.ekino.com"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\PHPStan\\": "tests"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
],
"require": {
"php": "^7.1",
"phpstan/phpstan": "^0.10",
Expand All @@ -25,6 +22,18 @@
"friendsofphp/php-cs-fixer": "^2.12",
"sensiolabs/security-checker": "^4.1"
},
"autoload": {
"psr-4": {
"Ekino\\PHPStanBannedCode\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Ekino\\PHPStanBannedCode\\": "tests"
}
},
"minimum-stability": "dev",
"prefer-stable": true,

"extra": {
"branch-alias": {
Expand Down
Loading

0 comments on commit 0556d80

Please # to comment.