Test sintassi e verifica variabili
This commit is contained in:
+3
-5
@@ -13,14 +13,12 @@ build_job:
|
||||
stage: build
|
||||
script:
|
||||
- |-
|
||||
if [[ "$env:hasSource" == "0" ]]
|
||||
{
|
||||
echo "$env:hasSource"
|
||||
if [ "$env:hasSource" == "0" ]; then
|
||||
'& "$env:NUGET_PATH" sources Add -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""'
|
||||
}
|
||||
else
|
||||
{
|
||||
'& "$env:NUGET_PATH" sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"viaDante16`""'
|
||||
}
|
||||
fi
|
||||
- '& "$env:NUGET_PATH" restore LPA.sln'
|
||||
- '& "\$env:MSBUILD_PATH" LPA/LPA.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user