Skip to content

Commit

Permalink
Add configs
Browse files Browse the repository at this point in the history
  • Loading branch information
riddler7 committed Dec 5, 2018
1 parent f48619b commit b2e6ed8
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
@@ -0,0 +1,21 @@
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,js,json,css,scss,eslintrc,feature}]
indent_size = 2
indent_style = space

[composer.json]
indent_size = 4
9 changes: 9 additions & 0 deletions .gitattributes
@@ -0,0 +1,9 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/docs export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore
/tests export-ignore
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
assets/
vendor/
resources/
.idea/
17 changes: 17 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,17 @@
inherit: true

filter:
paths: [src/*, tests/*]

checks:
php:
code_rating: true
duplication: true

build:
dependencies:
override:
- true
tests:
override:
- phpcs-run
22 changes: 22 additions & 0 deletions .travis.yml
@@ -0,0 +1,22 @@
language: php
php:
- 7.1
- 7.2

env:
- DB=MYSQL CORE_RELEASE=4

before_script:
- phpenv rehash
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer self-update
- composer validate
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile

script:
- vendor/bin/phpunit --coverage-clover=coverage.xml

after_success:
- mv coverage.xml ~/build/$TRAVIS_REPO_SLUG
- cd ~/build/$TRAVIS_REPO_SLUG
- bash <(curl -s https://codecov.io/bash)

0 comments on commit b2e6ed8

Please sign in to comment.