Skip to content

Commit

Permalink
[TASK] Add basic linting to travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Apr 20, 2018
1 parent 9506d87 commit 5d98792
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.Build
composer.lock
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -4,4 +4,6 @@ php:
- '7.1'
- '7.2'
before_script: composer install
script: composer test
script:
- composer lint
- composer test
16 changes: 14 additions & 2 deletions composer.json
Expand Up @@ -20,7 +20,8 @@
"typo3/cms-core": "^8.7.0"
},
"require-dev": {
"typo3/testing-framework": "~1.0.3"
"typo3/testing-framework": "^1.0",
"squizlabs/php_codesniffer": "3.*"
},
"conflict": {
"schnitzler/fluid-styled-responsive-images": ">=0.0.1"
Expand All @@ -34,7 +35,18 @@
"sms_responsive_images": "self.version",
"typo3-ter/sms-responsive-images": "self.version"
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": ".Build/Web"
}
},
"scripts": {
"test": "phpunit -c vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml Tests/"
"lint": "phpcs --standard=PSR2 --extensions=php --ignore=.Build,Tests,ext_emconf.php .",
"test": "phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml Tests/"
}
}

0 comments on commit 5d98792

Please sign in to comment.