Skip to content

Commit

Permalink
Improve package
Browse files Browse the repository at this point in the history
Improve composer config

Add Git attributes file

Clean .gitignore file

Add editorconfig
  • Loading branch information
sagikazarmark committed Dec 28, 2015
1 parent 77cf958 commit b42b8ca
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tests/ export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php_cs export-ignore
.styleci.yml export-ignore
.travis.yml export-ignore
phpunit.xml.dist export-ignore
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.project
.buildpath
.settings
.idea/
composer.lock
build/
_build/
phpunit.xml
vendor/
composer.lock
phpunit.xml
38 changes: 32 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache

php:
- 5.4
- 5.5
- 5.6
- hhvm
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

env:
global:
- TEST_COMMAND="composer test"

branches:
except:
- /^analysis-.*$/

matrix:
fast_finish: true
include:
- php: 5.4
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"

before_install:
- travis_retry composer self-update

before_script: composer install
install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction

script: vendor/bin/phpunit --coverage-text
script:
- $TEST_COMMAND
24 changes: 14 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mathiasverraes/money",
"description": "PHP implementation of Fowler's Money pattern",
"keywords": [ "Money", "Value Object", "Generic Sub-domain", "domain-driven design", "DDD" ],
"keywords": ["Money", "Value Object", "Generic Sub-domain", "domain-driven design", "DDD"],
"homepage": "http://verraes.net/2011/04/fowler-money-pattern-in-php/",
"license": "MIT",
"authors": [
Expand All @@ -16,12 +16,12 @@
},
"require-dev": {
"kriswallsmith/buzz": "~0.15",
"phpunit/phpunit": "4.*"
"phpunit/phpunit": "^4.5"
},
"extra": {
"branch-alias": {
"dev-master": "1.3.x-dev"
}
"suggest": {
"TheBigBrainsCompany/TbbcMoneyBundle": "Very complete Symfony2 bundle with support for Twig, Doctrine, Forms, ...",
"pink-tie/money-bundle": "Pink-Tie's Symfony2 integration with Money library",
"Sylius/SyliusMoneyBundle": "Sylius' Symfony2 integration with Money library"
},
"autoload": {
"psr-4": {
Expand All @@ -33,9 +33,13 @@
"Money\\": "tests/"
}
},
"suggest": {
"TheBigBrainsCompany/TbbcMoneyBundle": "Very complete Symfony2 bundle with support for Twig, Doctrine, Forms, ...",
"pink-tie/money-bundle": "Pink-Tie's Symfony2 integration with Money library",
"Sylius/SyliusMoneyBundle": "Sylius' Symfony2 integration with Money library"
"scripts": {
"test": "vendor/bin/phpunit",
"test-ci": "vendor/bin/phpunit --coverage-text"
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
}
}
}

0 comments on commit b42b8ca

Please sign in to comment.