|
1 |
| -variables: |
2 |
| - # AZURE_CLIENT_SECRET and SQLPASSWORD must be defined as secret variables in the pipeline. |
3 |
| - # AZURE_TENANT_ID and AZURE_CLIENT_ID are not expected to be secret variables, just regular variables |
4 |
| - AZURECLIENTSECRET: $(AZURE_CLIENT_SECRET) |
5 |
| - PASSWORD: $(SQLPASSWORD) |
6 |
| -pool: |
7 |
| - vmImage: 'ubuntu-latest' |
8 |
| - |
9 |
| -steps: |
10 |
| - - template: include-install-go-tools.yml |
11 |
| - |
12 |
| - - task: Docker@2 |
13 |
| - displayName: 'Run SQL 2017 docker image' |
14 |
| - inputs: |
15 |
| - command: run |
16 |
| - arguments: '-m 2GB -e ACCEPT_EULA=1 -d --name sql2017 -p:1433:1433 -e SA_PASSWORD=$(PASSWORD) mcr.microsoft.com/mssql/server:2017-latest' |
17 |
| - |
18 |
| - - template: include-runtests-linux.yml |
19 |
| - parameters: |
20 |
| - RunName: 'SQL2017' |
21 |
| - SQLCMDUSER: sa |
22 |
| - SQLPASSWORD: $(PASSWORD) |
23 |
| - |
24 |
| - - template: include-runtests-linux.yml |
25 |
| - parameters: |
26 |
| - RunName: 'SQLDB' |
27 |
| - # AZURESERVER must be defined as a variable in the pipeline |
28 |
| - SQLCMDSERVER: $(AZURESERVER) |
29 |
| - AZURECLIENTSECRET: $(AZURECLIENTSECRET) |
30 |
| - |
31 |
| - - task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4 |
32 |
| - displayName: Merge coverage data |
33 |
| - inputs: |
34 |
| - reports: '**/*.coverage.xml"' # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported. |
35 |
| - targetdir: 'coverage' # REQUIRED # The directory where the generated report should be saved. |
36 |
| - reporttypes: 'HtmlInline_AzurePipelines;Cobertura' # The output formats and scope (separated by semicolon) Values: Badges, Clover, Cobertura, CsvSummary, Html, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MarkdownSummary, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, Xml, XmlSummary |
37 |
| - sourcedirs: '$(Build.SourcesDirectory)' # Optional directories which contain the corresponding source code (separated by semicolon). The source directories are used if coverage report contains classes without path information. |
38 |
| - verbosity: 'Info' # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off |
39 |
| - tag: '$(build.buildnumber)_#$(build.buildid)_$(Build.SourceBranchName)' # Optional tag or build version. |
40 |
| - - task: PublishCodeCoverageResults@1 |
41 |
| - inputs: |
42 |
| - codeCoverageTool: Cobertura |
43 |
| - pathToSources: '$(Build.SourcesDirectory)' |
44 |
| - summaryFileLocation: $(Build.SourcesDirectory)/coverage/*.xml |
45 |
| - reportDirectory: $(Build.SourcesDirectory)/coverage |
46 |
| - failIfCoverageEmpty: true |
47 |
| - condition: always() |
48 |
| - continueOnError: true |
49 |
| - env: |
50 |
| - disable.coverage.autogenerate: 'true' |
51 |
| - |
52 |
| - - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 |
53 |
| - displayName: ‘Component Detection’ |
| 1 | +variables: |
| 2 | + # AZURE_CLIENT_SECRET and SQLPASSWORD must be defined as secret variables in the pipeline. |
| 3 | + # AZURE_TENANT_ID and AZURE_CLIENT_ID are not expected to be secret variables, just regular variables |
| 4 | + AZURECLIENTSECRET: $(AZURE_CLIENT_SECRET) |
| 5 | + PASSWORD: $(SQLPASSWORD) |
| 6 | +pool: |
| 7 | + vmImage: 'ubuntu-latest' |
| 8 | + |
| 9 | +steps: |
| 10 | + - template: include-install-go-tools.yml |
| 11 | + |
| 12 | + - task: Docker@2 |
| 13 | + displayName: 'Run SQL 2017 docker image' |
| 14 | + inputs: |
| 15 | + command: run |
| 16 | + arguments: '-m 2GB -e ACCEPT_EULA=1 -d --name sql2017 -p:1433:1433 -e SA_PASSWORD=$(PASSWORD) mcr.microsoft.com/mssql/server:2017-latest' |
| 17 | + |
| 18 | + - template: include-runtests-linux.yml |
| 19 | + parameters: |
| 20 | + RunName: 'SQL2017' |
| 21 | + SQLCMDUSER: sa |
| 22 | + SQLPASSWORD: $(PASSWORD) |
| 23 | + |
| 24 | + - template: include-runtests-linux.yml |
| 25 | + parameters: |
| 26 | + RunName: 'SQLDB' |
| 27 | + # AZURESERVER must be defined as a variable in the pipeline |
| 28 | + SQLCMDSERVER: $(AZURESERVER) |
| 29 | + AZURECLIENTSECRET: $(AZURECLIENTSECRET) |
| 30 | + |
| 31 | + - task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4 |
| 32 | + displayName: Merge coverage data |
| 33 | + inputs: |
| 34 | + reports: '**/*.coverage.xml"' # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported. |
| 35 | + targetdir: 'coverage' # REQUIRED # The directory where the generated report should be saved. |
| 36 | + reporttypes: 'HtmlInline_AzurePipelines;Cobertura' # The output formats and scope (separated by semicolon) Values: Badges, Clover, Cobertura, CsvSummary, Html, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MarkdownSummary, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, Xml, XmlSummary |
| 37 | + sourcedirs: '$(Build.SourcesDirectory)' # Optional directories which contain the corresponding source code (separated by semicolon). The source directories are used if coverage report contains classes without path information. |
| 38 | + verbosity: 'Info' # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off |
| 39 | + tag: '$(build.buildnumber)_#$(build.buildid)_$(Build.SourceBranchName)' # Optional tag or build version. |
| 40 | + - task: PublishCodeCoverageResults@1 |
| 41 | + inputs: |
| 42 | + codeCoverageTool: Cobertura |
| 43 | + pathToSources: '$(Build.SourcesDirectory)' |
| 44 | + summaryFileLocation: $(Build.SourcesDirectory)/coverage/*.xml |
| 45 | + reportDirectory: $(Build.SourcesDirectory)/coverage |
| 46 | + failIfCoverageEmpty: true |
| 47 | + condition: always() |
| 48 | + continueOnError: true |
| 49 | + env: |
| 50 | + disable.coverage.autogenerate: 'true' |
| 51 | + |
| 52 | + - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 |
| 53 | + displayName: ‘Component Detection’ |
0 commit comments