-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
43 lines (36 loc) · 1.22 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
32
33
34
35
36
37
38
39
40
41
42
43
sudo: false
language: csharp
solution: Broadcast.sln
mono: none
#dist: xenial
dotnet: 3.1.414
#node_js:
# - "10"
notifications:
email:
# recipients:
on_success: never #[always|never|change] # default: change
on_failure: always #[always|never|change] # default: always
before_script:
- export PATH="$PATH:$HOME/.dotnet/tools"
install:
- dotnet tool install --global dotnet-sonarscanner
- dotnet restore
- nvm install 10.0.0
- nvm use 10.0.0
script:
- dotnet sonarscanner begin /k:"WickedFlame_Broadcast" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$SONAR_KEY" /d:sonar.language="cs" /d:sonar.exclusions="**/bin/**/*,**/obj/**/*" /d:sonar.cs.opencover.reportsPaths="lcov.opencover.xml" || true
- dotnet build --configuration NetCore
# - dotnet test
# - dotnet test Tests/DataImporter.Tests/DataImporter.Tests.csproj
- dotnet sonarscanner end /d:sonar.login="$SONAR_KEY" || true
#addons:
# sonarcloud:
# organization: "wickedflame"
# token:
# secure: "" # encrypted value of your token
#script:
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
# - sonar-scanner