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
|
||||
type: docker
|
||||
|
||||
name: CI
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: sonar
|
||||
image: sonarsource/sonar-scanner-cli:5
|
||||
- name: build
|
||||
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||
commands:
|
||||
- cd Sources
|
||||
- dotnet restore Blazor.sln
|
||||
- dotnet build Blazor.sln -c Release --no-restore
|
||||
- dotnet publish Blazor.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
||||
|
||||
- name: tests
|
||||
image: mcr.microsoft.com/dotnet/sdk:7.0
|
||||
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
|
||||
settings:
|
||||
sonar_host:
|
||||
from_secret: sonar_host
|
||||
sonar_token:
|
||||
from_secret: sonar_token
|
||||
- cd Sources/
|
||||
- dotnet restore Blazor.sln
|
||||
- dotnet test Blazor.sln --no-restore
|
||||
depends_on: [build]
|
Loading…
Reference in new issue