Skip to content

Commit 9720686

Browse files
committed
Reorganized jobs
1 parent a23f92c commit 9720686

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.travis.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
language: csharp
2-
dotnet: 2.1 # latest available release
3-
mono: none
42
solution: Mastercard.Developer.OAuth1Signer.sln
5-
git:
6-
depth: false # "Shallow clone detected during the analysis"
7-
install:
8-
- dotnet tool install --global dotnet-sonarscanner
9-
- dotnet restore
10-
before_script:
11-
- export PATH="$PATH:$HOME/.dotnet/tools"
123
jobs:
134
include:
14-
- stage: Sonar (begin)
5+
- stage: Test
6+
dotnet: 2.1.500
7+
mono: none
8+
install:
9+
- dotnet restore
10+
script:
11+
- dotnet test -c Release
12+
- dotnet publish -c Release
13+
- stage: Test with code analysis
14+
dotnet: 2.1 # latest available release
15+
mono: none
16+
git:
17+
depth: false # "Shallow clone detected during the analysis"
18+
install:
19+
- dotnet tool install --global dotnet-sonarscanner
20+
- dotnet restore
21+
before_script:
22+
- export PATH="$PATH:$HOME/.dotnet/tools"
1523
env:
1624
- TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/TestResults
1725
script:
@@ -23,10 +31,6 @@ jobs:
2331
/d:sonar.login="$SONAR_TOKEN" \
2432
/d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/results.trx" \
2533
/d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml"
26-
- stage: Test
27-
script:
2834
- dotnet test -c Release -l:"trx;LogFileName=results.trx" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="TestResults/coverage.xml"
2935
- dotnet publish -c Release
30-
- stage: Sonar (end)
31-
script:
3236
- dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"

0 commit comments

Comments
 (0)