🚧 🐛 Fix drone name, comment SQCI
continuous-integration/drone/push Build is passing Details

pull/2/head
Alexis Drai 2 years ago
parent 0164387e07
commit 5a7b330523

@ -0,0 +1,44 @@
kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet build DiceApp.sln -c Release --no-restore
- dotnet publish DiceApp.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: tests
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet test DiceApp.sln --no-restore
depends_on: [build]
# - name: code-analysis
# image: pubhub.codefirst.ddns.net/thbellem/codefirst-dronesonarplugin-dotnet5
# commands:
# - cd Sources/
# - dotnet restore DiceApp.sln
# - dotnet sonarscanner begin /k:dice_app /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
# - dotnet build DiceApp.sln -c Release --no-restore
# - dotnet test DiceApp.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
# - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
# - dotnet publish DiceApp.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
# - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
# secrets: [ SECRET_SONAR_LOGIN ]
# settings:
# # accessible en ligne de commande par ${PLUGIN_SONAR_HOST}
# sonar_host: https://codefirst.ddns.net/sonar/
# # accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN}
# sonar_token:
# from_secret: SECRET_SONAR_LOGIN
# depends_on: [tests]

@ -1 +1,16 @@
# DiceApp
[![Build Status](https://codefirst.ddns.net/api/badges/alexis.drai/dice_app/status.svg)](https://codefirst.ddns.net/alexis.drai/dice_app)
[![Quality Gate Status](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=alert_status)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Bugs](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=bugs)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Code Smells](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=code_smells)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Coverage](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=coverage)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Duplicated Lines (%)](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=duplicated_lines_density)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Lines of Code](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=ncloc)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Maintainability Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=sqale_rating)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Reliability Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=reliability_rating)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Security Rating](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=security_rating)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Technical Debt](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=sqale_index)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
[![Vulnerabilities](https://codefirst.ddns.net/sonar/api/project_badges/measure?project=dice_app&metric=vulnerabilities)](https://codefirst.ddns.net/sonar/dashboard?id=dice_app)
# DiceApp
A multi-platform dice throwing app in the making.

@ -1,24 +0,0 @@
kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet build DiceApp.sln -c Release --no-restore
- dotnet publish DiceApp.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: tests
image: mcr.microsoft.com/dotnet/sdk:5.0
commands:
- cd Sources/
- dotnet restore DiceApp.sln
- dotnet test DiceApp.sln --no-restore
depends_on: [build]
Loading…
Cancel
Save