This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
55 lines (48 loc) · 1.47 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
44
45
46
47
48
49
50
51
52
53
54
notifications:
email:
on_success: never
on_failure: always
language: csharp
solution: AcmStatisticsAbp.sln
mono: none
dotnet: 2.0.0
dist: trusty
stages:
- name: test
- name: deploy
if: tag =~ ^v
matrix:
include:
- env: NAME=Test
stage: test
script:
- cd test/AcmStatisticsAbp.Tests/
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
after_success:
- bash <(curl -s https://codecov.io/bash) -f ./coverage.xml
- env: NAME=Basic
stage: test
install:
- npm install
script:
- npm run commitlint-travis
- env: NAME=Build
stage: test
addons:
sonarcloud:
organization: "liu233w-github"
token: $SONAR_TOKEN
cache:
directories:
- $HOME/.sonar/cache
- $HOME/.m2
install:
- curl -o scanner.zip -L https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip
- unzip scanner.zip
- chmod +x sonar-scanner-3.1.0.1141/bin/sonar-scanner
before_script:
- dotnet SonarScanner.MSBuild.dll begin /k:"acm-statistics-abp" /d:sonar.login=$SONAR_TOKEN /d:sonar.organization=liu233w-github /d:sonar.exclusions=**/wwwroot/**/* /d:sonar.host.url=https://sonarcloud.io
script:
- dotnet build
after_script:
- dotnet SonarScanner.MSBuild.dll end /d:sonar.login=$SONAR_TOKEN