From 7b187515094d862628bb1c392b3dcd67c562f839 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 12 Feb 2025 10:03:25 +0100 Subject: [PATCH] inserimento compilazione Shelly nuget unstable --- .gitlab-ci.yml | 243 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 164 insertions(+), 79 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ac3f26..aa3a296 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -178,6 +178,19 @@ EgwProxy.Ftp:build: script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m' +EgwProxy.Gomba:build: + stage: build + tags: + - win + variables: + APP_NAME: EgwProxy.Gomba + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m' + EgwProxy.Icoel:build: stage: build tags: @@ -217,12 +230,12 @@ EgwProxy.OsaiCncLib:build: script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m' -EgwProxy.SqlDb:build: +EgwProxy.Shelly:build: stage: build tags: - win variables: - APP_NAME: EgwProxy.SqlDb + APP_NAME: EgwProxy.Shelly before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' @@ -230,12 +243,12 @@ EgwProxy.SqlDb:build: script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m' -EgwProxy.Gomba:build: +EgwProxy.SqlDb:build: stage: build tags: - win variables: - APP_NAME: EgwProxy.Gomba + APP_NAME: EgwProxy.SqlDb before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' @@ -275,6 +288,34 @@ EgwProxy.Ftp:staging: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Gomba:staging: + stage: staging + needs: ["EgwProxy.Gomba:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.Gomba + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + changes: + - EgwProxy.Gomba/* + when: always + - if: $CI_COMMIT_BRANCH == 'SDK/Gomba' + changes: + - EgwProxy.Gomba/* + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' + EgwProxy.Icoel:staging: stage: staging needs: ["EgwProxy.Icoel:build"] @@ -361,6 +402,35 @@ EgwProxy.OsaiCncLib:staging: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Shelly:staging: + stage: staging + needs: ["EgwProxy.Shelly:build"] + tags: + - win + variables: + CONFIG: Debug + APP_NAME: EgwProxy.Shelly + rules: + - if: $CI_COMMIT_BRANCH == 'develop' + changes: + - EgwProxy.Shelly/* + when: always + - if: $CI_COMMIT_BRANCH == 'SDK/Shelly' + changes: + - EgwProxy.Shelly/* + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' +# - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' + EgwProxy.SqlDb:staging: stage: staging needs: ["EgwProxy.SqlDb:build"] @@ -389,35 +459,6 @@ EgwProxy.SqlDb:staging: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -EgwProxy.Gomba:staging: - stage: staging - needs: ["EgwProxy.Gomba:build"] - tags: - - win - variables: - CONFIG: Debug - APP_NAME: EgwProxy.Gomba - rules: - - if: $CI_COMMIT_BRANCH == 'develop' - changes: - - EgwProxy.Gomba/* - when: always - - if: $CI_COMMIT_BRANCH == 'SDK/Gomba' - changes: - - EgwProxy.Gomba/* - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' - - *version-fix - - *nuspec-fix - script: - - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' - - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' - - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - - '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' - - # -------------------------------- # RELEASE # -------------------------------- @@ -447,6 +488,31 @@ EgwProxy.Ftp:build:release: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Gomba:build:release: + stage: release + needs: ["EgwProxy.Gomba:build"] + tags: + - win + variables: + CONFIG: Release + APP_NAME: EgwProxy.Gomba + rules: + - if: $CI_COMMIT_BRANCH == 'master' + changes: + - EgwProxy.Gomba/* + when: always + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' + EgwProxy.Icoel:build:release: stage: release needs: ["EgwProxy.Icoel:build"] @@ -521,6 +587,30 @@ EgwProxy.OsaiCncLib:build:release: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +EgwProxy.Shelly:build:release: + stage: release + needs: ["EgwProxy.Shelly:build"] + tags: + - win + variables: + CONFIG: Release + APP_NAME: EgwProxy.Shelly + rules: + - if: $CI_COMMIT_BRANCH == 'master' + changes: + - EgwProxy.Shelly/* + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + - *version-fix + - *nuspec-fix + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.vbproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' + - '& Remove-Item *.nupkg' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"' + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' + EgwProxy.SqlDb:build:release: stage: release needs: ["EgwProxy.SqlDb:build"] @@ -547,31 +637,6 @@ EgwProxy.SqlDb:build:release: - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' -EgwProxy.Gomba:build:release: - stage: release - needs: ["EgwProxy.Gomba:build"] - tags: - - win - variables: - CONFIG: Release - APP_NAME: EgwProxy.Gomba - rules: - - if: $CI_COMMIT_BRANCH == 'master' - changes: - - EgwProxy.Gomba/* - when: always - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' - - *version-fix - - *nuspec-fix - script: - - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m' - - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"' - - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' - - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' - # -------------------------------- # DocFx # -------------------------------- @@ -594,6 +659,26 @@ EgwProxy.Ftp:docfx: - docfx $env:APP_NAME/docfx.json - mv $env:APP_NAME/_site "docfx" - *DocReplica + +EgwProxy.Gomba:docfx: + stage: docfx + needs: ["EgwProxy.Gomba:build"] + tags: + - win + variables: + APP_NAME: EgwProxy.Gomba + rules: + - if: $CI_COMMIT_BRANCH == 'master' + changes: + - EgwProxy.Gomba/* + when: always + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + script: + - docfx $env:APP_NAME/docfx.json + - mv $env:APP_NAME/_site "docfx" + - *DocReplica EgwProxy.Icoel:docfx: stage: docfx @@ -654,7 +739,27 @@ EgwProxy.OsaiCncLib:docfx: - docfx $env:APP_NAME/docfx.json - mv $env:APP_NAME/_site "docfx" - *DocReplica - + +EgwProxy.Shelly:docfx: + stage: docfx + needs: ["EgwProxy.Shelly:build"] + tags: + - win + variables: + APP_NAME: EgwProxy.Shelly + rules: + - if: $CI_COMMIT_BRANCH == 'master' + changes: + - EgwProxy.Shelly/* + when: always + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' + script: + - docfx $env:APP_NAME/docfx.json + - mv $env:APP_NAME/_site "docfx" + - *DocReplica + EgwProxy.SqlDb:docfx: stage: docfx needs: ["EgwProxy.SqlDb:build"] @@ -674,23 +779,3 @@ EgwProxy.SqlDb:docfx: - docfx $env:APP_NAME/docfx.json - mv $env:APP_NAME/_site "docfx" - *DocReplica - -EgwProxy.Gomba:docfx: - stage: docfx - needs: ["EgwProxy.Gomba:build"] - tags: - - win - variables: - APP_NAME: EgwProxy.Gomba - rules: - - if: $CI_COMMIT_BRANCH == 'master' - changes: - - EgwProxy.Gomba/* - when: always - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet' - script: - - docfx $env:APP_NAME/docfx.json - - mv $env:APP_NAME/_site "docfx" - - *DocReplica