Test : Testing stuff with drone
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
753adb220d
commit
10936519c8
@ -1,17 +1,24 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
name: CI
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: sonar
|
- name: build
|
||||||
image: sonarsource/sonar-scanner-cli:5
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||||
commands:
|
commands:
|
||||||
- sonar-scanner -Dsonar.projectKey=MuscuMaths -Dsonar.sources=. -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.host.url=$${PLUGIN_SONAR_HOST} -Dsonar.php.coverage.reportPaths=coverage.xml
|
- cd Sources
|
||||||
settings:
|
- dotnet restore Blazor.sln
|
||||||
sonar_host:
|
- dotnet build Blazor.sln -c Release --no-restore
|
||||||
from_secret: sonar_host
|
- dotnet publish Blazor.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
||||||
sonar_token:
|
|
||||||
from_secret: sonar_token
|
- name: tests
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||||
|
commands:
|
||||||
|
- cd Sources/
|
||||||
|
- dotnet restore Blazor.sln
|
||||||
|
- dotnet test Blazor.sln --no-restore
|
||||||
|
depends_on: [build]
|
Loading…
Reference in new issue