diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ed50366 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,62 @@ +kind: pipeline +type: docker +name: MineGuide_CI_Pipeline + +trigger: + branch: + - develop + event: + - push + +steps: + #Build pour la version avec les vues (plusieurs minutes) + #- name: build_maui + # image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest + # commands: + # - cd Sources/ + # - dotnet restore MineGuide.sln + # - dotnet build MineGuide.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 + # - dotnet publish Vues/Vues.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk + # depends_on: [clone] + + #Build pour la version sans les vues (quelques secondes) + - name: build_net7 + image: mcr.microsoft.com/dotnet/sdk:7.0 + commands: + - cd Sources/ + - dotnet restore MineGuide_linuxOnly.sln + - dotnet build MineGuide_linuxOnly.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 + - dotnet publish MineGuide_linuxOnly.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release + depends_on: [clone] + + #Tests après les build(s) + - name: tests + image: mcr.microsoft.com/dotnet/sdk:7.0 + commands: + - cd Sources/ + - dotnet restore MineGuide_linuxOnly.sln + - dotnet test MineGuide_linuxOnly.sln --no-restore + depends_on: [build_net7] + + #Déploiement de la CI sur Sonar (Inspection de code) + - name: code-inspection-linux-only + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 + secrets: [ SECRET_SONAR_LOGIN ] + environment: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN + project_key: MineGuide101 + coverage_exclusions: "Tests/**" + commands: + - cd Sources/ + - dotnet restore MineGuide_linuxOnly.sln + - dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token} + - dotnet build MineGuide_linuxOnly.sln -c Release --no-restore + - dotnet test MineGuide_linuxOnly.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - reportgenerator -reports:'**/coverage.cobertura.xml' -reporttypes:SonarQube -targetdir:"coveragereport" -verbosity:Verbose + - dotnet publish MineGuide_linuxOnly.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + - dotnet sonarscanner end /d:sonar.login=$${sonar_token} + branch: + - develop + depends_on: [tests] \ No newline at end of file diff --git a/Documentation/README.md b/Documentation/README.md new file mode 100644 index 0000000..c3f01bd --- /dev/null +++ b/Documentation/README.md @@ -0,0 +1 @@ +Documentation diff --git a/README.md b/README.md index 72c8428..6656638 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ -# SAE_2.01_-_Developpement_dune_application +SAE 2.01 : Développement d'une application en XAML et C# + + +Blondeau Nicolas +Doumir Fernandes Yannis + +L'application porte sur le thème de Minecraft. C'est un guide d'utilisation sur les monstres Minecraft. +Il est possible de voir les statistiques du monstre choisi, ainsi que de consulter des conseils et en poster. + +Source image : https://fr-minecraft.net/15-creatures-mobs-animaux-sur-minecraft.php + +Use case : https://dartagnan.cg.helmo.be/~p150107/tutoriels/uml-uc/ \ No newline at end of file diff --git a/Sources/Collection/App.xaml b/Sources/Collection/App.xaml new file mode 100644 index 0000000..4445ba7 --- /dev/null +++ b/Sources/Collection/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/Sources/Collection/App.xaml.cs b/Sources/Collection/App.xaml.cs new file mode 100644 index 0000000..5da71c7 --- /dev/null +++ b/Sources/Collection/App.xaml.cs @@ -0,0 +1,12 @@ +namespace Collection +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} \ No newline at end of file diff --git a/Sources/Collection/AppShell.xaml b/Sources/Collection/AppShell.xaml new file mode 100644 index 0000000..3bac12c --- /dev/null +++ b/Sources/Collection/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/Sources/Collection/AppShell.xaml.cs b/Sources/Collection/AppShell.xaml.cs new file mode 100644 index 0000000..a4a9227 --- /dev/null +++ b/Sources/Collection/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace Collection +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/Sources/Collection/Collection.csproj b/Sources/Collection/Collection.csproj new file mode 100644 index 0000000..42185d7 --- /dev/null +++ b/Sources/Collection/Collection.csproj @@ -0,0 +1,55 @@ + + + + net7.0-android;net7.0-ios;net7.0-maccatalyst + $(TargetFrameworks);net7.0-windows10.0.19041.0 + + + Exe + Collection + true + true + enable + + + Collection + + + com.companyname.collection + b90c946f-bdf3-4912-b4de-e1ebb8d39c03 + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/Collection/MainPage.xaml b/Sources/Collection/MainPage.xaml new file mode 100644 index 0000000..ed6f0a4 --- /dev/null +++ b/Sources/Collection/MainPage.xaml @@ -0,0 +1,41 @@ + + + + + + + + +