|
|
@ -24,14 +24,15 @@ steps:
|
|
|
|
- cd MCTG/
|
|
|
|
- cd MCTG/
|
|
|
|
- dotnet restore SAE-2.01.sln
|
|
|
|
- dotnet restore SAE-2.01.sln
|
|
|
|
- dotnet build SAE-2.01.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
- dotnet build SAE-2.01.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
|
|
|
|
- dotnet publish MCTGApp/MCTGApp.csproj -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet publish Views/Views.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
|
|
|
- dotnet publish Views/Views.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk
|
|
|
|
|
|
|
|
|
|
|
|
- name: tests
|
|
|
|
- name: tests
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0
|
|
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd MCTG/
|
|
|
|
- cd MCTG/
|
|
|
|
- dotnet restore CI-CD.sln
|
|
|
|
- dotnet restore SAE-2.01.sln
|
|
|
|
- dotnet test CI-CD.sln --no-restore
|
|
|
|
- dotnet test SAE-2.01.sln --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0
|
|
|
|
depends_on: [ build ]
|
|
|
|
depends_on: [ build ]
|
|
|
|
|
|
|
|
|
|
|
|
# - name: code-analysis
|
|
|
|
# - name: code-analysis
|
|
|
|