diff --git a/.appveyor.yml b/.appveyor.yml index 6ebe31e..3e07aa9 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -45,10 +45,10 @@ build_script: - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe begin /k:"ndbunit2" /d:"sonar.organization=savornicesei-github" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=$env:SQTOKEN" /d:"sonar.analysis.mode=preview" /d:"sonar.github.pullRequest=$env:APPVEYOR_PULL_REQUEST_NUMBER" /d:"sonar.github.repository=https://github.com/savornicesei/NDbUnit2" /d:"sonar.github.oauth=$env:GHTOKEN" /d:"sonar.branch.target=$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH" } - ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe begin /k:"ndbunit2" /d:"sonar.organization=savornicesei-github" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=$env:SQTOKEN" /d:"sonar.github.repository=https://github.com/savornicesei/NDbUnit2" /d:"sonar.github.oauth=$env:GHTOKEN" /d:"sonar.branch.name=$env:APPVEYOR_REPO_BRANCH" /d:sonar.cs.nunit.reportsPaths="TestResult.xml" /d:sonar.cs.opencover.it.reportsPaths="coverage.xml" } - msbuild /verbosity:quiet "NDbUnit.sln" - - '"packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5 /result=TestResult.xml & exit 0' - - '"packages\opencover\4.6.519\tools\OpenCover.Console.exe" -register:user -target:"packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" -targetargs:"test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5" -filter:"+[NDbUnit.*]* -[NDbUnit.Test]*" -output:"coverage.xml" & exit 0' + - '"..\packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5 /result=TestResult.xml & exit 0' + - '"..\packages\opencover\4.6.519\tools\OpenCover.Console.exe" -register:user -target:"..\packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" -targetargs:"test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5" -filter:"+[NDbUnit.*]* -[NDbUnit.Test]*" -output:"coverage.xml" & exit 0' - MSBuild.SonarQube.Runner.exe end /d:"sonar.login=%SQTOKEN%" test_script: - - 'packages\coveralls.net\0.7.0\tools\csmacnz.Coveralls.exe" --opencover -i coverage.xml --repoToken %CATOKEN% --useRelativePaths --commitId %APPVEYOR_REPO_COMMIT% --commitBranch %APPVEYOR_REPO_BRANCH% --commitAuthor %APPVEYOR_REPO_COMMIT_AUTHOR% --commitEmail %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL% --commitMessage %APPVEYOR_REPO_COMMIT_MESSAGE% --jobId %APPVEYOR_BUILD_NUMBER% --serviceName appveyor' + - '..\packages\coveralls.net\0.7.0\tools\csmacnz.Coveralls.exe" --opencover -i coverage.xml --repoToken %CATOKEN% --useRelativePaths --commitId %APPVEYOR_REPO_COMMIT% --commitBranch %APPVEYOR_REPO_BRANCH% --commitAuthor %APPVEYOR_REPO_COMMIT_AUTHOR% --commitEmail %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL% --commitMessage %APPVEYOR_REPO_COMMIT_MESSAGE% --jobId %APPVEYOR_BUILD_NUMBER% --serviceName appveyor' - ps: codecov -f "coverage.xml" -t $env:CCTOKEN \ No newline at end of file diff --git a/.develop.appveyor.yml b/.develop.appveyor.yml index cedfb73..769f3dc 100644 --- a/.develop.appveyor.yml +++ b/.develop.appveyor.yml @@ -45,10 +45,11 @@ build_script: - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe begin /k:"ndbunit2" /d:"sonar.organization=savornicesei-github" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=$env:SQTOKEN" /d:"sonar.analysis.mode=preview" /d:"sonar.github.pullRequest=$env:APPVEYOR_PULL_REQUEST_NUMBER" /d:"sonar.github.repository=https://github.com/savornicesei/NDbUnit2" /d:"sonar.github.oauth=$env:GHTOKEN" /d:"sonar.branch.target=$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH" } - ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { MSBuild.SonarQube.Runner.exe begin /k:"ndbunit2" /d:"sonar.organization=savornicesei-github" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=$env:SQTOKEN" /d:"sonar.github.repository=https://github.com/savornicesei/NDbUnit2" /d:"sonar.github.oauth=$env:GHTOKEN" /d:"sonar.branch.name=$env:APPVEYOR_REPO_BRANCH" /d:sonar.cs.nunit.reportsPaths="TestResult.xml" /d:sonar.cs.opencover.it.reportsPaths="coverage.xml" } - msbuild /verbosity:quiet "NDbUnit.sln" - - '"packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5 /result=TestResult.xml & exit 0' - - '"packages\opencover\4.6.519\tools\OpenCover.Console.exe" -register:user -target:"packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" -targetargs:"test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5" -filter:"+[NDbUnit.*]* -[NDbUnit.Test]*" -output:"coverage.xml" & exit 0' + - dir + - '"..\packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5 /result=TestResult.xml & exit 0' + - '"..\packages\opencover\4.6.519\tools\OpenCover.Console.exe" -register:user -target:"..\packages\nunit.consolerunner\3.7.0\tools\nunit3-console.exe" -targetargs:"test\NDbUnit.Test\build\Debug\net452\NDbUnit.Test.dll /exclude=OracleTests /noshadow /framework:net-4.5" -filter:"+[NDbUnit.*]* -[NDbUnit.Test]*" -output:"coverage.xml" & exit 0' - MSBuild.SonarQube.Runner.exe end /d:"sonar.login=%SQTOKEN%" test_script: - - '"packages\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe" --opencover -i coverage.xml --repoToken %CATOKEN% --useRelativePaths --commitId %APPVEYOR_REPO_COMMIT% --commitBranch %APPVEYOR_REPO_BRANCH% --commitAuthor %APPVEYOR_REPO_COMMIT_AUTHOR% --commitEmail %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL% --commitMessage %APPVEYOR_REPO_COMMIT_MESSAGE% --jobId %APPVEYOR_BUILD_NUMBER% --serviceName appveyor' + - '"..\packages\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe" --opencover -i coverage.xml --repoToken %CATOKEN% --useRelativePaths --commitId %APPVEYOR_REPO_COMMIT% --commitBranch %APPVEYOR_REPO_BRANCH% --commitAuthor %APPVEYOR_REPO_COMMIT_AUTHOR% --commitEmail %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL% --commitMessage %APPVEYOR_REPO_COMMIT_MESSAGE% --jobId %APPVEYOR_BUILD_NUMBER% --serviceName appveyor' - ps: codecov -f "coverage.xml" -t $env:CCTOKEN \ No newline at end of file