802 lines
26 KiB
YAML
802 lines
26 KiB
YAML
variables:
|
|
NUGET_PATH: 'C:\Tools\nuget.exe'
|
|
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
|
|
SOL_NAME: 'IOB-WIN-NEXT'
|
|
APP_NAME: 'IOB-WIN-NEXT'
|
|
NUM_REL: '0.1.2.3'
|
|
NUM_DEB: '0.1.2-beta.3'
|
|
CONFIG: ''
|
|
VERS_MAIN: '3.6'
|
|
NEW_REL: ''
|
|
OUTPUT_DIR: ''
|
|
NET_SHARE_X: '\\codedoc.egalware.com\library'
|
|
NET_USER_X: 'gitlab'
|
|
NEXUS_PATH: 'MAPO/IOB-WIN-NEXT'
|
|
|
|
.DocReplica: &DocReplica
|
|
- |
|
|
net use X: /delete
|
|
net use X: $env:NET_SHARE_X /u:$env:NET_USER_X $XDRIVE_PASSWD
|
|
ROBOCOPY docfx X:\$env:APP_NAME /MIR /XF .git* /XD .git
|
|
SLEEP 2
|
|
net use X: /delete
|
|
|
|
# helper x fix pacchetti nuget da repo locale nexus.steamware.net
|
|
.nuget-fix: &nuget-fix
|
|
- |
|
|
$hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C
|
|
if ($hasSource -eq 0) {
|
|
C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
|
} else {
|
|
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
|
}
|
|
echo $hasSource
|
|
|
|
# helper x fix version number
|
|
.version-fix: &version-fix
|
|
- |
|
|
$env:NEW_REL = $env:VERS_MAIN+"."+(get-date -format yyMM)+"."+(get-date -format ddHH)
|
|
$env:NUM_REL = $env:VERS_MAIN+"."+(get-date -format yyMM)+"."+(get-date -format dHH)
|
|
$env:NUM_DEB = $env:VERS_MAIN+"."+(get-date -format yyMM)+"-beta."+(get-date -format dHH)
|
|
$env:NEW_COPYRIGHT = "EgalWare @ 2006-" + (get-date -format yyyy)
|
|
$contenuto = Get-Content -path 'VersGen\VersGen.cs' -Raw
|
|
$newContenuto = $contenuto -replace '0.0.0.0', $env:NEW_REL
|
|
$newContenuto = $newContenuto -replace 'EgalWare © 2006', $env:NEW_COPYRIGHT
|
|
$newContenuto | Set-Content -Path 'VersGen\VersGen.cs'
|
|
# display versioni generate
|
|
$resoconto = "Effettuato fix file VersGen | release v: " + $env:NUM_REL + " | debug v: " + $env:NUM_DEB;
|
|
Write-Output $resoconto;
|
|
echo "Replace completati"
|
|
|
|
# helper x fix nuspec file
|
|
.nuspec-fix: &nuspec-fix
|
|
- |
|
|
echo "Modifica dati file nuspec Release"
|
|
$currRelease = $env:NUM_REL
|
|
$currDebug = $env:NUM_DEB
|
|
$find = "<version>(.|\n)*?</version>";
|
|
$fileNameRel = "$env:APP_NAME.Release.nuspec";
|
|
$replRel = "<version>" + $currRelease + "</version>";
|
|
$nuspDataRel = Get-Content $fileNameRel;
|
|
$nuspDataRelUpd = $nuspDataRel -replace $find, $replRel;
|
|
$nuspDataRelUpd = $nuspDataRelUpd -replace "#copyright#", $replCopy;
|
|
$nuspDataRelUpd = $nuspDataRelUpd -replace "#releaseNotes#", "Build $adesso";
|
|
Set-Content -Path $fileNameRel -Value $nuspDataRelUpd;
|
|
echo "Modifica dati file nuspec Debug"
|
|
$fileNameDeb = "$env:APP_NAME.Debug.nuspec";
|
|
$replDeb = "<version>" + $currDebug + "</version>";
|
|
$nuspDataDeb = Get-Content $fileNameDeb;
|
|
$nuspDataDebUpd = $nuspDataDeb -replace $find, $replDeb;
|
|
$nuspDataDebUpd = $nuspDataDebUpd -replace "#copyright#", $replCopy;
|
|
$nuspDataDebUpd = $nuspDataDebUpd -replace "#releaseNotes#", "Build $adesso";
|
|
Set-Content -Path $fileNameDeb -Value $nuspDataDebUpd;
|
|
echo "replace completati"
|
|
|
|
# helper pulizia files zip
|
|
.cleanup-zip: &cleanup-zip
|
|
- |
|
|
$env:OUTPUT_DIR = "Releases\" + $CI_COMMIT_BRANCH + "\*"
|
|
if ((Test-Path $env:OUTPUT_DIR))
|
|
{
|
|
Remove-Item $env:OUTPUT_DIR -Force -Recurse -ErrorAction Ignore
|
|
}
|
|
echo "Clening ZIP dir: $env:OUTPUT_DIR"
|
|
|
|
# helper creazione files zip
|
|
.zipper: &zipper
|
|
- |
|
|
$7zipPath = $env:ProgramFiles+"\7-Zip\7z.exe"
|
|
if (-not (Test-Path -Path $7zipPath -PathType Leaf)) {
|
|
throw "7 zip file '$7zipPath' not found"
|
|
}
|
|
Set-Alias 7zip $7zipPath
|
|
$Target = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
|
|
cd "$env:APP_NAME\bin\"
|
|
$Source = "*"
|
|
7zip a -tzip $Target $Source -xr!DATA\CONF
|
|
echo "called ZIP $Source --> $Target"
|
|
|
|
# helper creazione hash files
|
|
.hashBuild: &hashBuild
|
|
- |
|
|
$Target = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
|
|
$MD5 = Get-FileHash $Target -Algorithm MD5
|
|
$SHA1 = Get-FileHash $Target -Algorithm SHA1
|
|
New-Item $Target".md5"
|
|
New-Item $Target".sha1"
|
|
$MD5.Hash | Set-Content -Path $Target".md5"
|
|
$SHA1.Hash | Set-Content -Path $Target".sha1"
|
|
echo "Created HASH files for $Target"
|
|
|
|
.nexusUpload: &nexusUpload
|
|
- |
|
|
Set-Alias mCurl C:\Windows\system32\curl.exe
|
|
$VersNumb = $env:NEW_REL
|
|
echo "Curr Version: $VersNumb"
|
|
if($CI_COMMIT_BRANCH -eq "master")
|
|
{
|
|
$version = "stable"
|
|
}
|
|
else
|
|
{
|
|
$version = "unstable"
|
|
}
|
|
$File2Send = Get-ChildItem("Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".*")
|
|
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 "Upload area utility for Releases\$CI_COMMIT_BRANCH\$env:APP_NAME.*"
|
|
$FileUtility = Get-ChildItem("Releases\$CI_COMMIT_BRANCH\$env:APP_NAME.*")
|
|
ForEach ($File in $FileUtility) {
|
|
$FileName = Split-Path $File -leaf
|
|
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/utility/MAPO/$env:APP_NAME/$version/$FileName
|
|
}
|
|
# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "Resources\manifest.xml" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml
|
|
# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file "Resources\ChangeLog.html" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html
|
|
# mCurl -v -u $env:NEXUS_USER:$env:NEXUS_PASSWD --upload-file bin/release/$env:APP_NAME.zip $env:NEXUS_SERVER/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip
|
|
|
|
|
|
stages:
|
|
- build
|
|
- staging
|
|
- release
|
|
- docfx
|
|
|
|
# --------------------------------
|
|
# BUILD
|
|
# --------------------------------
|
|
IOB-MAN:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-MAN
|
|
only:
|
|
refs:
|
|
- develop
|
|
- main
|
|
- master
|
|
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/ /verbosity:minimal /m'
|
|
|
|
IOB-WIN:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-WIN
|
|
only:
|
|
refs:
|
|
- develop
|
|
- main
|
|
- master
|
|
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'
|
|
|
|
IOB-WIN-NEXT:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-WIN-NEXT
|
|
only:
|
|
refs:
|
|
- develop
|
|
- main
|
|
- master
|
|
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.Ftp:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Ftp
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/Ftp
|
|
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:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Icoel
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/Icoel
|
|
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.MultiCncLib:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.MultiCncLib
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/MultiCnc
|
|
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.vbproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m'
|
|
|
|
EgwProxy.OsaiCncLib:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.OsaiCncLib
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/OsaiCnc
|
|
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.vbproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /nodeReuse:false /verbosity:minimal /m'
|
|
|
|
EgwProxy.SqlDb:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.SqlDb
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/SqlDb
|
|
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.Gomba:build:
|
|
stage: build
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Gomba
|
|
only:
|
|
refs:
|
|
- develop
|
|
- SDK/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'
|
|
|
|
|
|
# --------------------------------
|
|
# STAGING: (nuget beta)
|
|
# --------------------------------
|
|
EgwProxy.Ftp:staging:
|
|
stage: staging
|
|
needs: ["EgwProxy.Ftp:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Debug
|
|
APP_NAME: EgwProxy.Ftp
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Debug
|
|
APP_NAME: EgwProxy.Icoel
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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.MultiCncLib:staging:
|
|
stage: staging
|
|
needs: ["EgwProxy.MultiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Debug
|
|
APP_NAME: EgwProxy.MultiCncLib
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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.OsaiCncLib:staging:
|
|
stage: staging
|
|
needs: ["EgwProxy.OsaiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Debug
|
|
APP_NAME: EgwProxy.OsaiCncLib
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Debug
|
|
APP_NAME: EgwProxy.SqlDb
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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
|
|
only:
|
|
refs:
|
|
- develop
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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
|
|
# --------------------------------
|
|
IOB-MAN:release:
|
|
stage: release
|
|
needs: ["IOB-MAN:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-MAN
|
|
NEXUS_PATH: MAPO/IOB-MAN
|
|
only:
|
|
refs:
|
|
- main
|
|
- master
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
- *cleanup-zip
|
|
script:
|
|
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m'
|
|
- *zipper
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
|
|
IOB-WIN:release:
|
|
stage: release
|
|
needs: ["IOB-WIN:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-WIN
|
|
NEXUS_PATH: MAPO/IOB-WIN
|
|
only:
|
|
refs:
|
|
- main
|
|
- master
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
- *cleanup-zip
|
|
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'
|
|
- *zipper
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
|
|
IOB-WIN-NEXT:release:
|
|
stage: release
|
|
needs: ["IOB-WIN-NEXT:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-WIN-NEXT
|
|
NEXUS_PATH: MAPO/IOB-WIN-NEXT
|
|
only:
|
|
refs:
|
|
- main
|
|
- master
|
|
before_script:
|
|
- *nuget-fix
|
|
- '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln" -verbosity quiet'
|
|
- *version-fix
|
|
- *cleanup-zip
|
|
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'
|
|
- *zipper
|
|
- *hashBuild
|
|
- *nexusUpload
|
|
|
|
EgwProxy.Ftp:build:release:
|
|
stage: release
|
|
needs: ["EgwProxy.Ftp:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Release
|
|
APP_NAME: EgwProxy.Ftp
|
|
only:
|
|
refs:
|
|
- SDK/Ftp
|
|
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" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
|
|
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -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"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Release
|
|
APP_NAME: EgwProxy.Icoel
|
|
only:
|
|
refs:
|
|
- SDK/Icoel
|
|
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" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
|
|
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -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.MultiCncLib:build:release:
|
|
stage: release
|
|
needs: ["EgwProxy.MultiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Release
|
|
APP_NAME: EgwProxy.MultiCncLib
|
|
only:
|
|
refs:
|
|
- SDK/MultiCnc
|
|
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" pack "$env:APP_NAME\$env:APP_NAME.vbproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
|
|
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -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.OsaiCncLib:build:release:
|
|
stage: release
|
|
needs: ["EgwProxy.OsaiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Release
|
|
APP_NAME: EgwProxy.OsaiCncLib
|
|
only:
|
|
refs:
|
|
- SDK/OsaiCnc
|
|
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 fe387daa-d07c-3207-877e-96c8be1be91b -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"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
CONFIG: Release
|
|
APP_NAME: EgwProxy.SqlDb
|
|
only:
|
|
refs:
|
|
- SDK/SqlDb
|
|
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" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
|
|
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -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
|
|
only:
|
|
refs:
|
|
- SDK/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.Release.nuspec"'
|
|
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -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
|
|
# --------------------------------
|
|
EgwProxy.Ftp:docfx:
|
|
stage: docfx
|
|
needs: ["EgwProxy.Ftp:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Ftp
|
|
only:
|
|
- SDK/Ftp
|
|
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
|
|
needs: ["EgwProxy.Icoel:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Icoel
|
|
only:
|
|
- SDK/Icoel
|
|
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.MultiCncLib:docfx:
|
|
stage: docfx
|
|
needs: ["EgwProxy.MultiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.MultiCncLib
|
|
only:
|
|
- SDK/MultiCnc
|
|
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.OsaiCncLib:docfx:
|
|
stage: docfx
|
|
needs: ["EgwProxy.OsaiCncLib:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.OsaiCncLib
|
|
only:
|
|
- SDK/OsaiCnc
|
|
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"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.SqlDb
|
|
only:
|
|
- SDK/SqlDb
|
|
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.Gomba:docfx:
|
|
stage: docfx
|
|
needs: ["EgwProxy.Gomba:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: EgwProxy.Gomba
|
|
only:
|
|
- SDK/Gomba
|
|
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
|
|
|
|
IOB-WIN-NEXT:docfx:
|
|
stage: docfx
|
|
needs: ["IOB-WIN-NEXT:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-WIN-NEXT
|
|
only:
|
|
- master
|
|
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
|
|
|
|
IOB-MAN:docfx:
|
|
stage: docfx
|
|
needs: ["IOB-MAN:build"]
|
|
tags:
|
|
- win
|
|
variables:
|
|
APP_NAME: IOB-MAN
|
|
only:
|
|
- master
|
|
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 |