File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,9 @@ nbproject/private
2
2
* ~
3
3
composer.lock
4
4
vendor
5
- .idea
5
+ .idea
6
+
7
+ .scannerwork
8
+ phpunit.coverage.xml
9
+ phpunit.report.xml
10
+
Original file line number Diff line number Diff line change 6
6
- " 5.6"
7
7
8
8
install :
9
+ - export SONARSCANNER_VERSION=3.2.0.1227
10
+ - wget https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip
11
+ - unzip sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip
9
12
- composer install
10
13
11
14
script :
12
- - vendor/bin/phpunit
15
+ - vendor/bin/phpunit --coverage-clover phpunit.coverage.xml --log-junit phpunit.report.xml
16
+ - sonar-scanner-$SONARSCANNER_VERSION-linux/bin/sonar-scanner -Dsonar.login=$SONAR_LOGIN
13
17
Original file line number Diff line number Diff line change
1
+ # Configuration
2
+ sonar.projectKey =SingletonPatternPHP
3
+ sonar.organization =byjg-opensource
4
+ sonar.host.url =https://sonarcloud.io
5
+ sonar.projectVersion =1.0
6
+
7
+ # Comma-separated paths to directories with sources (required)
8
+ sonar.sources =src
9
+ sonar.tests =tests
10
+ sonar.php.tests.reportPath =phpunit.resport.xml
11
+ sonar.php.coverage.reportPath =phpunit.coverage.xml
12
+
13
+ # Language
14
+ # sonar.language=javascript
15
+
16
+ # Encoding of the source files
17
+ sonar.sourceEncoding =UTF-8
18
+
You can’t perform that action at this time.
0 commit comments