Skip to content

Commit

Permalink
Add sonar running
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekill committed Sep 30, 2017
1 parent f336ae6 commit 5b098b2
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 7 deletions.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
language: php

dist: trusty
sudo: required

addons:
sonarcloud:
organization: tekill-github
token:
secure: "gmbBKIYBSJ8a9kNZhQn/azr1c+IiwtJtSdwxrO2cB0ew6OOQbuAWzLZ+Q2Hj+0xfh+YoXasrC2jvJTDYzTbNaY3bd4kYZq+za2jrgt8cYK9fxK9bSgcQDH+vyYTjnVuxI2nGddQuRsyhkXnzZ3x7rVS9yPGJSYdrx6UgClsjaheUto/cKpKjYj5UdPotddFl2nyoBw3rNsuFNmDbpLkgnV/lhN4lllELl3t0s/xBX89PLdeLEqpTQx7ffue3muY4OpAJZ7+PJSt+eK+rsX6XtYVTqdgQ0vPRjyNv0qvOEbcaa4iufl3nxJdEjbqdYI3TOkgrKygRhostAb+sXN+foCbbfNISUb/iXBV5GBBpyqqfZYU2wyRgIDey2OA2s7ryJQtdp56qXogwF4LNa7SxF3eA6Sn2xBxzmDNYOysrVBlbldppl8zMVLiLrrZE5lq5fkWmN6sJdKYRpn816+66c684z0nKLemVuuvvBs4o67+BzNppuTi1UlKxIr9msMjDRSi/nztJ4ABohg/w11dVLIk6errySnK2NedMJ2xuU7KjWFdYiaTO2LqQvQwYvtSIhxxo4Tb4VGSkDiO+mY5YRT9yx6maMtNphm636qvYiionna+6hA6/sIN+GWxsoXO/0HKK4hDr6bZdjCqpsdWPdyryk9L9Eim4WzWR/xiXGgs="

jdk:
- oraclejdk8

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

php:
- 5.6
Expand All @@ -15,4 +26,6 @@ php:
before_script:
- composer install

script: vendor/bin/phpunit
script:
- vendor/bin/phpunit --coverage-clover=phpunit.coverage.xml --log-junit=phpunit.report.xml
- sonar-scanner
21 changes: 16 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# 1.0.0 (2017-05-14)

Initial release of the library.
* Initial release of the library.

# 1.0.1 (2017-06-01)

Update README.md
Fix travis.yml
Fix bug in ComposerIO
Update output messages
* Update README.md
* Fix travis.yml
* Fix bug in ComposerIO
* Update output messages

# 1.0.2 (2017-06-05)

* Remove comments from destination file
* Improve console output messages
* Set "actualize" command as default.

# 1.0.3 (2017-08-31)

* Fix config key mismatch
* Update Readme.md
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ check_run() {
}
# Actualize env files if the `env.dist` file gets changed
check_run env.dist "php ./vendor/bin/env-diff aclualize"
check_run env.dist "php ./vendor/bin/env-diff actualize"
```

[ico-version]: https://img.shields.io/packagist/v/Tekill/env-diff.svg?style=flat-square
Expand Down
26 changes: 26 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sonar.projectKey=env-diff
sonar.projectName=Env is a lightweight library which sync your .env files with .env.dist by composer scripts, hooks or manual running
sonar.projectVersion=1.0-SNAPSHOT

# =====================================================
# Meta-data for the project
# =====================================================

sonar.links.homepage=https://github.com/Tekill/env-diff
sonar.links.ci=https://travis-ci.org/Tekill/env-diff
sonar.links.scm=https://github.com/Tekill/env-diff
sonar.links.issue=https://github.com/Tekill/env-diff/issues


# =====================================================
# Properties that will be shared amongst all modules
# =====================================================

# SQ standard properties
sonar.sources=src
sonar.tests=tests

# Properties specific to language plugins:
# - For PHP (the plugin currently supports only absolute path in the reports, so this test project is not portable)
sonar.php.coverage.reportPath=phpunit.coverage.xml
sonar.php.tests.reportPath=phpunit.report.xml

0 comments on commit 5b098b2

Please sign in to comment.