-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
31 lines (25 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dist: xenial
os: linux
env:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true DOTNET_CLI_TELEMETRY_OPTOUT=1
install:
- sudo wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
- sudo dpkg -i packages-microsoft-prod.deb
- sudo apt-get install apt-transport-https
- sudo apt-get update
- sudo apt-get install dotnet-sdk-3.1
- sudo apt-get install dotnet-sdk-2.2
- sudo wget -q https://download.visualstudio.microsoft.com/download/pr/820db713-c9a5-466e-b72a-16f2f5ed00e2/628aa2a75f6aa270e77f4a83b3742fb8/dotnet-sdk-5.0.100-linux-x64.tar.gz
- sudo tar zxf dotnet-sdk-5.0.100-linux-x64.tar.gz -C /usr/share/dotnet
- dotnet tool install --global coveralls.net --version 1.0.0
- export PATH="$PATH:/home/travis/.dotnet/tools"
script:
- dotnet --list-sdks
- dotnet build --configuration Release
- dotnet test --framework netcoreapp2.0 --configuration Release
- dotnet test --framework netcoreapp2.1 --configuration Release
- dotnet test --framework netcoreapp2.2 --configuration Release
- dotnet test --framework netcoreapp3.0 --configuration Release
- dotnet test --framework net5.0 --configuration Release
- dotnet test --framework netcoreapp3.1 --configuration Release /p:CollectCoverage=true /p:CopyLocalLockFileAssemblies=true /p:UseSourceLink=true /p:CoverletOutput=../TestResult/ /p:CoverletOutputFormat=opencover /p:ExcludeByAttribute=CompilerGeneratedAttribute
- csmacnz.Coveralls --opencover -i ./TestResult/coverage.netcoreapp3.1.opencover.xml --useRelativePaths --commitId $TRAVIS_COMMIT --commitBranch $TRAVIS_BRANCH --commitAuthor "$REPO_COMMIT_AUTHOR" --commitEmail "$REPO_COMMIT_AUTHOR_EMAIL" --commitMessage "$REPO_COMMIT_MESSAGE" --jobId $TRAVIS_JOB_ID --serviceName travis-ci