Skip to content

Commit

Permalink
fix(namespace): update namespaces and add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mremi committed Jan 3, 2019
1 parent 1ba731d commit 87d96b3
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 6,856 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/sonata project.
* This file is part of the ekino/phpstan-sonata project.
*
* (c) Ekino
*
Expand All @@ -10,7 +10,7 @@
*/

$header = <<<EOF
This file is part of the phpstan/sonata project.
This file is part of the ekino/phpstan-sonata 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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app-cs-fix: ## to fix files that need to be fixed
vendor/bin/php-cs-fixer fix --verbose

app-install: ## to install app
composer install --prefer-dist
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist

app-security-check: ## to check if any security issues in the PHP dependencies
vendor/bin/security-checker security:check --end-point=http://security.sensiolabs.org/check_lock
Expand Down
37 changes: 22 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "ekino/phpstan-sonata",
"description": "PHPStan extension for Sonata",
"license": "proprietary",
"type": "library",
"autoload": {
"psr-4": {
"PHPStan\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\PHPStan\\": "tests"
"description": "PHPStan extension for Sonata",
"keywords": ["PHPStan", "Sonata Project"],
"homepage": "https://github.com/ekino/phpstan-sonata",
"license": "MIT",
"authors": [
{
"name": "Rémi Marseille",
"email": "[email protected]",
"homepage": "https://www.ekino.com"
}
},

"minimum-stability": "dev",
"prefer-stable": true,

],
"require": {
"php": "^7.1",
"phpstan/phpstan": "^0.10",
Expand All @@ -28,6 +23,18 @@
"friendsofphp/php-cs-fixer": "^2.12",
"sensiolabs/security-checker": "^4.1"
},
"autoload": {
"psr-4": {
"Ekino\\PHPStanSonata\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Ekino\\PHPStanSonata\\": "tests"
}
},
"minimum-stability": "dev",
"prefer-stable": true,

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

0 comments on commit 87d96b3

Please sign in to comment.