Skip to content

Commit

Permalink
Merge pull request #7 from webburza/develop
Browse files Browse the repository at this point in the history
Release 0.3.0
  • Loading branch information
dkarlovi authored Dec 29, 2016
2 parents a754ce8 + dc9d2fa commit af40f54
Show file tree
Hide file tree
Showing 22 changed files with 496 additions and 193 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
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
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
29 changes: 29 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Default
* text=auto eol=lf

# Binary files
*.png binary
*.gif binary
*.jpg binary
*.db binary
*.jar binary
*.ico binary
.gitkeep binary
*.pdf binary
*.zip binary

# Fonts
*.eot binary
*.otf binary
*.svg binary
*.ttf binary
*.woff binary
*.woff2 binary

# Media
*.mp4 binary

# Translations
*.po binary
*.mo binary
*.pot binary
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/.idea/
/vendor/
/composer.lock
/.php_cs.cache
11 changes: 0 additions & 11 deletions .gitlab-ci.yml

This file was deleted.

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

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);

return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(
[
'@Symfony' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'empty_return' => false,
]
)
->setFinder($finder);
8 changes: 8 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
checks:
php: true
tools:
php_cs_fixer: true
external_code_coverage: true
filter:
excluded_paths:
- "Tests"
29 changes: 17 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
language: php

cache:
directories:
- bin
- vendor
directories:
- bin
- vendor

matrix:
fast_finish: true

php:
- 7.0
- 5.6
- 7.1
- 7.0
- 5.6

before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- if [[ -z "$GITHUB_OAUTH_TOKEN" ]]; then export GITHUB_OAUTH_TOKEN="66736022ed66ebbb2be87027ed45a24554cc8344"; fi
- composer config -g github-oauth.github.com "$GITHUB_OAUTH_TOKEN" >/dev/null 2>&1
- composer self-update

install:
- composer install --no-interaction --prefer-dist --no-scripts
- composer install --no-interaction --prefer-dist --no-scripts

script:
- composer validate
- vendor/bin/phpunit
- composer validate
- vendor/bin/phing ci

after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
Loading

0 comments on commit af40f54

Please sign in to comment.