File tree Expand file tree Collapse file tree 10 files changed +41
-19
lines changed
Expand file tree Collapse file tree 10 files changed +41
-19
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,9 @@ build:
1212 commands :
1313 - powershell scripts\Get-Deps.ps1
1414 - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
15- - |
16- set RELEASE=0
17- if "x%GIT_TAG%"!==!"x" set RELEASE=1
18- if "%RELEASE%"=="1" (build -r -p) else (build -r)
19- - |
20- set RELEASE=0
21- if "x%GIT_TAG%"!==!"x" set RELEASE=1
22- if "%RELEASE%"=="1" (test -r -p) else (test -r)
23- - |
24- set RELEASE=0
25- if "x%GIT_TAG%"!==!"x" set RELEASE=1
26- if "%RELEASE%"=="1" (pack -r -p -u) else (pack -r -u)
15+ - build.cmd
16+ - test.cmd
17+ - pack.cmd -u
2718
2819 artifacts :
2920 nuget :
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ publish_npm:
3232 AUTH_URL : https://artifactory.internal.unity3d.com/api/npm/auth
3333
3434 commands :
35- - curl -u%ARTIFACTORY% %AUTH_URL%/auth > %USERPROFILE%\.npmrc
35+ - |
36+ @echo off
37+ curl -u%ARTIFACTORY% %AUTH_URL% > %USERPROFILE%\.npmrc
3638 - for /f "delims=" %%d in ('dir /b "upm-ci~\packages\*.tgz"') do (call npm publish "upm-ci~\packages\%%d" --quiet --registry %PUBLISH_URL%)
3739
3840 dependencies :
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ test_{{ platform.name }}_{{ editor.version }}:
88 type : {{ platform.type }}
99 image : {{ platform.image }}
1010 flavor : {{ platform.flavor}}
11- variables :
12- DOTNET_CLI_TELEMETRY_OPTOUT : 1
1311
1412 commands :
1513 - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
Original file line number Diff line number Diff line change 11@ echo off
22setlocal
33
4+ if NOT " x%YAMATO_JOB_ID% " == " x" set GITLAB_CI = 1
5+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_TAG = %GIT_TAG%
6+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_REF_NAME = %GIT_BRANCH%
7+
48SET CONFIGURATION = Release
59SET PUBLIC = " "
610SET BUILD = 0
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ while (( "$#" )); do
3939 echo " Error: Unsupported flag $1 " >&2
4040 exit 1
4141 ;;
42+ * )
43+ shift
44+ ;;
4245 esac
4346done
4447
Original file line number Diff line number Diff line change 11@ echo off
22setlocal
33
4+ if NOT " x%YAMATO_JOB_ID% " == " x" set GITLAB_CI = 1
5+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_TAG = %GIT_TAG%
6+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_REF_NAME = %GIT_BRANCH%
7+
48SET CONFIGURATION = Release
59SET PUBLIC = " "
610SET BUILD = 0
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ while (( "$#" )); do
3939 echo " Error: Unsupported flag $1 " >&2
4040 exit 1
4141 ;;
42+ * )
43+ shift
44+ ;;
4245 esac
4346done
4447
Original file line number Diff line number Diff line change 11[CmdletBinding ()]
22Param (
3+ [string ]
4+ $UnityVersion = " 2019.2" ,
35 [switch ]
46 $Trace = $false
57)
@@ -17,5 +19,5 @@ Get-ChildItem -Directory $upmDir | % {
1719 Write-Output " Testing $ ( $_.Name ) "
1820
1921 $packageDir = Join-Path $upmDir $_.Name
20- Invoke-Command - Fatal { & upm- ci package test -- package- path $packageDir - u 2019.2 }
22+ Invoke-Command - Fatal { & upm- ci package test -- package- path $packageDir - u $UnityVersion }
2123}
Original file line number Diff line number Diff line change 11@ echo off
22setlocal
33
4+ if NOT " x%YAMATO_JOB_ID% " == " x" set GITLAB_CI = 1
5+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_TAG = %GIT_TAG%
6+ if NOT " x%YAMATO_JOB_ID% " == " x" set CI_COMMIT_REF_NAME = %GIT_BRANCH%
7+
48SET CONFIGURATION = Release
59SET PUBLIC = " "
610SET BUILD = 0
711set UPM = 0
12+ set UNITYVERSION = 2019.2
813
914:loop
1015IF NOT " %1 " == " " (
@@ -34,9 +39,13 @@ IF NOT "%1"=="" (
3439 )
3540 IF " %1 " == " -u" (
3641 SET UPM = 1
42+ SHIFT
43+ SET UNITYVERSION = %1
3744 )
3845 IF " %1 " == " --upm" (
3946 SET UPM = 1
47+ SHIFT
48+ SET UNITYVERSION = %1
4049 )
4150 SHIFT
4251 GOTO :loop
@@ -46,8 +55,8 @@ if "x%BUILD%"=="x1" (
4655 dotnet restore
4756 dotnet build --no-restore -c %CONFIGURATION% %PUBLIC%
4857)
49- dotnet test --no-build --no-restore -c %CONFIGURATION% %PUBLIC% --logger " trx;LogFileName=dotnet-test-result.trx" --logger " html;LogFileName=dotnet-test-result.html "
58+ dotnet test --no-build --no-restore -c %CONFIGURATION% %PUBLIC% --logger " trx;LogFileName=dotnet-test-result.trx"
5059
5160if " x%UPM% " == " x1" (
52- call powershell scripts/Test-Upm.ps1
61+ call powershell scripts/Test-Upm.ps1 -UnityVersion %UNITYVERSION%
5362)
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CONFIGURATION=Release
1212PUBLIC=" "
1313BUILD=0
1414UPM=0
15+ UNITYVERSION=2019.2
1516
1617while (( "$# " )) ; do
1718 case " $1 " in
@@ -34,11 +35,16 @@ while (( "$#" )); do
3435 -u|--upm)
3536 UPM=1
3637 shift
38+ UNITYVERSION=$1
39+ shift
3740 ;;
3841 -* |--* =) # unsupported flags
3942 echo " Error: Unsupported flag $1 " >&2
4043 exit 1
4144 ;;
45+ * )
46+ shift
47+ ;;
4248 esac
4349done
4450
5561dotnet test --no-build --no-restore -c $CONFIGURATION $PUBLIC --logger " trx;LogFileName=dotnet-test-result.trx" --logger " html;LogFileName=dotnet-test-result.html"
5662
5763if [[ x" $UPM " == x" 1" ]]; then
58- powershell scripts/Test-Upm.ps1
64+ powershell scripts/Test-Upm.ps1 -UnityVersion $UNITYVERSION
5965fi
6066
6167popd > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments