Skip to content

Commit

Permalink
Add missed skeleton files.
Browse files Browse the repository at this point in the history
  • Loading branch information
vova07 committed Mar 14, 2015
1 parent bfe4776 commit a91d540
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
/composer.lock export-ignore
27 changes: 24 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# phpstorm project files
# General
# composer.lock
build
docs
vendor

# Cache directories
Thumbs.db
*.DS_Store
*.empty

# PhpStorm project files
.idea

# Mac DS_Store Files
.DS_Store
# Netbeans project files
nbproject

# Eclipse, zend studio, aptana or other eclipse like project files
.buildpath
.project
.settings


# Mac deployment helpers
switch
index
35 changes: 35 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
filter:
excluded_paths: [tests/*]
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage:
timeout: 600
runs: 3
php_analyzer: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor, tests]
php_cpd:
enabled: true
excluded_dirs: [vendor, tests]
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:
- 5.4
- 5.5
- 5.6
- hhvm

install:
- composer self-update
- composer global require "fxp/composer-asset-plugin:1.0.0"
- composer install

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev

script:
- phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 comments on commit a91d540

Please sign in to comment.