Skip to content

Commit 5b098b2

Browse files
committed
Add sonar running
1 parent f336ae6 commit 5b098b2

File tree

4 files changed

+57
-7
lines changed

4 files changed

+57
-7
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
language: php
22

33
dist: trusty
4+
sudo: required
5+
6+
addons:
7+
sonarcloud:
8+
organization: tekill-github
9+
token:
10+
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="
11+
12+
jdk:
13+
- oraclejdk8
414

515
cache:
616
directories:
717
- $HOME/.composer/cache/files
18+
- $HOME/.sonar/cache
819

920
php:
1021
- 5.6
@@ -15,4 +26,6 @@ php:
1526
before_script:
1627
- composer install
1728

18-
script: vendor/bin/phpunit
29+
script:
30+
- vendor/bin/phpunit --coverage-clover=phpunit.coverage.xml --log-junit=phpunit.report.xml
31+
- sonar-scanner

CHANGELOG.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
# 1.0.0 (2017-05-14)
22

3-
Initial release of the library.
3+
* Initial release of the library.
44

55
# 1.0.1 (2017-06-01)
66

7-
Update README.md
8-
Fix travis.yml
9-
Fix bug in ComposerIO
10-
Update output messages
7+
* Update README.md
8+
* Fix travis.yml
9+
* Fix bug in ComposerIO
10+
* Update output messages
11+
12+
# 1.0.2 (2017-06-05)
13+
14+
* Remove comments from destination file
15+
* Improve console output messages
16+
* Set "actualize" command as default.
17+
18+
# 1.0.3 (2017-08-31)
19+
20+
* Fix config key mismatch
21+
* Update Readme.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ check_run() {
132132
}
133133
134134
# Actualize env files if the `env.dist` file gets changed
135-
check_run env.dist "php ./vendor/bin/env-diff aclualize"
135+
check_run env.dist "php ./vendor/bin/env-diff actualize"
136136
```
137137

138138
[ico-version]: https://img.shields.io/packagist/v/Tekill/env-diff.svg?style=flat-square

sonar-project.properties

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
sonar.projectKey=env-diff
2+
sonar.projectName=Env is a lightweight library which sync your .env files with .env.dist by composer scripts, hooks or manual running
3+
sonar.projectVersion=1.0-SNAPSHOT
4+
5+
# =====================================================
6+
# Meta-data for the project
7+
# =====================================================
8+
9+
sonar.links.homepage=https://github.com/Tekill/env-diff
10+
sonar.links.ci=https://travis-ci.org/Tekill/env-diff
11+
sonar.links.scm=https://github.com/Tekill/env-diff
12+
sonar.links.issue=https://github.com/Tekill/env-diff/issues
13+
14+
15+
# =====================================================
16+
# Properties that will be shared amongst all modules
17+
# =====================================================
18+
19+
# SQ standard properties
20+
sonar.sources=src
21+
sonar.tests=tests
22+
23+
# Properties specific to language plugins:
24+
# - For PHP (the plugin currently supports only absolute path in the reports, so this test project is not portable)
25+
sonar.php.coverage.reportPath=phpunit.coverage.xml
26+
sonar.php.tests.reportPath=phpunit.report.xml

0 commit comments

Comments
 (0)