Skip to content

Commit

Permalink
First revision.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Sep 13, 2019
1 parent 224c75a commit 3c77a75
Show file tree
Hide file tree
Showing 22 changed files with 4,197 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/.idea/workspace.xml
**/.idea/tasks.xml
**/.idea/*.iws
**/.idea/dataSources.local.xml
**/.idea/dictionaries
/vendor/
.php_cs.cache
/tests-report-html/
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/atom-generator.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/composerJson.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'php_unit_test_class_requires_covers' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'native_function_invocation' => false,
])
->setFinder($finder)
;
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: php
cache:
directories:
- $HOME/.composer
sudo: false
matrix:
fast_finish: true
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
install:
- travis_retry composer install --no-progress --no-interaction --prefer-dist
script:
- ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run -v --stop-on-violation
- composer phpunit
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[![Build Status](https://travis-ci.org/ddebin/atom-generator.svg?branch=master)](https://travis-ci.org/ddebin/atom-generator)

# atom-generator

Atom feed generator
45 changes: 45 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "ddebin/atom-generator",
"type": "library",
"description": "Atom feed generator",
"keywords": [
"atom",
"feed",
"generator"
],
"homepage": "https://github.com/ddebin/atom-generator",
"license": "MIT",
"authors": [
{
"name": "Damien Debin",
"email": "[email protected]"
}
],
"require": {
"php": "^7.1",
"webmozart/assert": "^1.5"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
"phpunit/phpunit": "^7"
},
"config": {
"platform": {
"php": "7.1"
}
},
"autoload": {
"psr-4": {
"AtomGenerator\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"scripts": {
"test": "./vendor/bin/php-cs-fixer fix --allow-risky=yes && ./vendor/bin/phpunit",
"phpunit": "./vendor/bin/phpunit"
}
}
Loading

0 comments on commit 3c77a75

Please sign in to comment.