Skip to content

Commit 55b4f25

Browse files
committed
Rewrote .travis.yml using build matrix (part 2)
1 parent 1e932c0 commit 55b4f25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ solution: Mastercard.Developer.OAuth1Signer.sln
1515
before_script:
1616
- export PATH="$PATH:$HOME/.dotnet/tools"
1717
install:
18-
- test $WITH_SONAR_ANALYSIS && dotnet tool install --global dotnet-sonarscanner
1918
- dotnet restore
20-
script:
19+
- test $WITH_SONAR_ANALYSIS && dotnet tool install --global dotnet-sonarscanner
20+
before_script:
2121
- |
2222
test $WITH_SONAR_ANALYSIS && dotnet sonarscanner begin \
2323
/k:"$SONAR_PROJECT_KEY" \
24-
/d:sonar.projectName="$SONAR_PROJECT_NAME" \
24+
/n:"$SONAR_PROJECT_NAME" \
2525
/d:sonar.organization="$SONAR_ORGANIZATION_KEY" \
2626
/d:sonar.host.url="$SONAR_URL" \
2727
/d:sonar.login="$SONAR_TOKEN" \
2828
/d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/tests.trx" \
2929
/d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml"
30+
script:
3031
- dotnet test -c Release -l:"trx;LogFileName=tests.trx" -r:"bin/" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="bin/coverage.xml"
3132
- dotnet publish -c Release
33+
after_success:
3234
- test $WITH_SONAR_ANALYSIS && dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"

0 commit comments

Comments
 (0)