diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b36d0c4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +@Library("kununu") _ + +withEnv([ + "SERVICE_NAME=data-fixtures", + "LOG_JUNIT_EXPORT=tests/.results/tests-junit.xml", + "LOG_CLOVER_EXPORT=tests/.results/tests-clover.xml" + ]) { + ansiColor { + timestamps { + defaultPipeline.getSource() + defaultPipeline.runPhpLibTests() + defaultPipeline.runSonar("php") + + if (env.BRANCH_NAME in ["master"]) { + defaultPipeline.publishPhpPackage() + } + } + } +} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..50ec248 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,11 @@ +sonar.projectKey=library-data-fixtures +sonar.projectName=data-fixtures (Library) + +sonar.sources=src + +sonar.tests=tests + +sonar.php.coverage.reportPath=tests/.results/tests-clover.xml +sonar.php.tests.reportPath=tests/.results/tests-junit.xml + +sonar.coverage.exclusion=tests/**