diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2312221..a8f7488 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ variables: VERS_MAIN: '0.9' NEW_REL: '' + APP_NAME: '' # helper x fix pacchetti nuget da repo locale nexus.steamware.net .nuget-fix: &nuget-fix @@ -46,12 +47,12 @@ variables: $File2Send = Get-ChildItem("$env:APP_NAME\Releases\" + $CI_COMMIT_BRANCH + "\*") ForEach ($File in $File2Send) { $FileName = Split-Path $File -leaf - mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/$FileName - mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/ARCHIVE/$VersNumb/$FileName - echo "mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/$FileName" + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:APP_NAME/$version/LAST/$FileName + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:APP_NAME/$version/ARCHIVE/$VersNumb/$FileName + echo "mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:APP_NAME/$version/LAST/$FileName" } - mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\manifest.xml" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml - mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\ChangeLog.html" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\manifest.xml" https://nexus.steamware.net/repository/SWS/$env:APP_NAME/$version/LAST/manifest.xml + mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "$env:APP_NAME\Resources\ChangeLog.html" https://nexus.steamware.net/repository/SWS/$env:APP_NAME/$version/LAST/ChangeLog.html # helper creazione files zip .zipper: &zipper @@ -74,57 +75,67 @@ stages: UI:build: - stage: build - tags: + stage: build + tags: - win - before_script: - - *nuget-fix - - dotnet restore MP.MONO.ALL.sln - script: - - dotnet build MP.MONO.UI/MP.MONO.UI.csproj + variables: + APP_NAME: MP.MONO.UI + before_script: + - *nuget-fix + - dotnet restore MP.MONO.ALL.sln + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj SIM:build: stage: build tags: - win + variables: + APP_NAME: MP.MONO.SIM before_script: - *nuget-fix - dotnet restore MP.MONO.ALL.sln script: - - dotnet build MP.MONO.SIM/MP.MONO.SIM.csproj + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj DECODER:build: stage: build tags: - win + variables: + APP_NAME: MP.MONO.DECODER before_script: - *nuget-fix - dotnet restore MP.MONO.ALL.sln script: - - dotnet build MP.MONO.DECODER/MP.MONO.DECODER.csproj + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj UI:staging: - stage: staging - tags: - - win - only: - - develop - needs: ["UI:build"] - script: - - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.MONO.UI/MP.MONO.UI.csproj + stage: staging + tags: + - win + variables: + APP_NAME: MP.MONO.UI + only: + - develop + needs: ["UI:build"] + script: + - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj UI:deploy: - stage: deploy - tags: - - win - only: - - main - needs: ["UI:build"] - script: - # IIS 02 - - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.MONO.UI/MP.MONO.UI.csproj - # IIS DEV - - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.MONO.UI/MP.MONO.UI.csproj + stage: deploy + tags: + - win + variables: + APP_NAME: MP.MONO.UI + only: + - main + needs: ["UI:build"] + script: + # IIS 02 + - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj + # IIS DEV + - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true $env:APP_NAME/$env:APP_NAME.csproj SIM:release: stage: release @@ -136,8 +147,7 @@ SIM:release: APP_NAME: MP.MONO.SIM needs: ["SIM:build"] script: - # - dotnet build MP.MONO.SIM/MP.MONO.SIM.csproj - - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.MONO.SIM/MP.MONO.SIM.csproj + - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj - *zipper - *hashBuild - *nexusUpload @@ -152,8 +162,7 @@ DECODER:release: APP_NAME: MP.MONO.DECODER needs: ["DECODER:build"] script: - # - dotnet build MP.MONO.DECODER/MP.MONO.DECODER.csproj - - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release MP.MONO.DECODER/MP.MONO.DECODER.csproj + - dotnet publish -p:PublishProfile=SingleFileX86.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj - *zipper - *hashBuild - *nexusUpload @@ -171,5 +180,5 @@ DECODER:release: # paths: # - publish/ # script: -# - dotnet publish -c Release -o ./publish MP.MONO.UI/MP.MONO.UI.csproj +# - dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj \ No newline at end of file diff --git a/MP.MONO.ADAPTER/MP.MONO.ADAPTER.csproj b/MP.MONO.ADAPTER/MP.MONO.ADAPTER.csproj index d318c2f..c00ab90 100644 --- a/MP.MONO.ADAPTER/MP.MONO.ADAPTER.csproj +++ b/MP.MONO.ADAPTER/MP.MONO.ADAPTER.csproj @@ -48,5 +48,7 @@ Always - + + + diff --git a/Resources/ChangeLog-original.html b/MP.MONO.ADAPTER/Resources/ChangeLog-original.html similarity index 94% rename from Resources/ChangeLog-original.html rename to MP.MONO.ADAPTER/Resources/ChangeLog-original.html index a523da2..3cf89dd 100644 --- a/Resources/ChangeLog-original.html +++ b/MP.MONO.ADAPTER/Resources/ChangeLog-original.html @@ -8,7 +8,7 @@
  • - v.6.* → + v.1.0.* →