Skip to content

Commit

Permalink
Add PHPStorm files. Add CodeClimate.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Sep 13, 2019
1 parent 4b33fec commit fad4012
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 11 deletions.
66 changes: 65 additions & 1 deletion .idea/atom-generator.iml

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

129 changes: 129 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

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

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

16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ sudo: false
matrix:
fast_finish: true
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: 7.1
- php: 7.2
- php: 7.3

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

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
- ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
- ./vendor/bin/phpunit --coverage-clover=clover.xml

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ To include `mc-google-visualization` in your project, add it to your `composer.j

include_once 'vendor/autoload.php';

$feed = new AtomGenerator\Feed();
$feed->setTitle('Blog');
$feed->setUpdatedDateTime(new DateTime('now'));

$entry = new AtomGenerator\Entry();
$entry->setTitle('Post', 'text');
$entry->setId('tag:id');
$entry->setContent('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'text');
$entry->setUpdatedDateTime(new DateTime('2019-05-04T21:00:40Z'));

$feed = new AtomGenerator\Feed();
$feed->setTitle('Blog');
$feed->setUpdatedDateTime(new DateTime('now'));
$feed->addEntry($entry);

assert(AtomGenerator\Feed::validate($feed->getDocument()));

echo $feed->saveXML();
```

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"require": {
"php": "^7.1",
"ext-dom": "*",
"ext-libxml": "*",
"ext-simplexml": "*",
"webmozart/assert": "^1.5"
},
Expand Down
3 changes: 2 additions & 1 deletion composer.lock

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

0 comments on commit fad4012

Please sign in to comment.