Aggiunto primo step x sherpa classico x CI/CD
This commit is contained in:
+29
-1
@@ -1,5 +1,11 @@
|
||||
variables:
|
||||
NUGET_PATH: 'C:\Tools\nuget.exe'
|
||||
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
|
||||
ASPNET_MERGE_PATH: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'
|
||||
EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\MoonPro\Release'
|
||||
DEPLOY_FOLDER: 'c:\Projects\Deploy\MoonPro\Builds'
|
||||
VERS_MAIN: '1.14'
|
||||
NEW_REL: ''
|
||||
NEXUS_PATH: 'SHERPA.BBM.UI'
|
||||
APP_NAME: 'SHERPA.BBM.UI'
|
||||
|
||||
@@ -56,6 +62,15 @@ variables:
|
||||
|
||||
# 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
|
||||
|
||||
# helper x fix version number
|
||||
.version-fix: &version-fix
|
||||
- |
|
||||
$env:NEW_REL = $env:VERS_MAIN+"."+(get-date –format yyMM)+"."+(get-date –format dHH)
|
||||
echo "Set vers: $env:NEW_REL"
|
||||
$contenuto = Get-Content -path 'VersGen\VersGen.cs' -Raw
|
||||
$newContenuto = $contenuto -replace '0.0.0.0', $env:NEW_REL
|
||||
$newContenuto | Set-Content -Path 'VersGen\VersGen.cs'
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
@@ -73,7 +88,20 @@ UI:build:
|
||||
- dotnet restore "$env:APP_NAME/$env:APP_NAME.csproj"
|
||||
script:
|
||||
- dotnet build "$env:APP_NAME/$env:APP_NAME.csproj"
|
||||
|
||||
|
||||
Net:build:
|
||||
stage: build
|
||||
variables:
|
||||
APP_NAME: 'SHERPA'
|
||||
tags:
|
||||
- win
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet'
|
||||
- *version-fix
|
||||
script:
|
||||
- '& "$env:MSBUILD_PATH" MP-ADM/MP-ADM.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
|
||||
|
||||
UI:test:
|
||||
stage: test
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user