Skip to content

Commit

Permalink
CI misc
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobemerick committed Nov 22, 2016
1 parent ce61fe2 commit e9ff660
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,18 @@
---
engines:
duplication:
enabled: true
config:
languages:
- php
fixme:
enabled: true
phpcodesniffer:
enabled: true
phpmd:
enabled: true
ratings:
paths:
- "**.php"
exclude_paths:
- tests/
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
language: php

php:
- 5.6
- 7

install:
- composer install --dev --no-interaction

script:
- phpunit --tap --coverage-clover build/logs/clover.xml

after_script:
- bash bin/codeclimate.sh
4 changes: 4 additions & 0 deletions bin/codeclimate.sh
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

php vendor/bin/test-reporter --stdout > codeclimate.json
curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports
15 changes: 15 additions & 0 deletions phpunit.xml
@@ -0,0 +1,15 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="unit">
<directory>tests/unit</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="coverage.xml"/>
</logging>
<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit e9ff660

Please sign in to comment.