File tree Expand file tree Collapse file tree 4 files changed +41
-11
lines changed
Expand file tree Collapse file tree 4 files changed +41
-11
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ CONFIGURATION=Release
1212PUBLIC=" "
1313BUILD=0
1414UPM=0
15+ UNITYVERSION=2019.2
16+ YAMATO=0
1517
1618while (( "$# " )) ; do
1719 case " $1 " in
@@ -37,15 +39,21 @@ while (( "$#" )); do
3739 -* |--* =) # unsupported flags
3840 echo " Error: Unsupported flag $1 " >&2
3941 exit 1
40- ;;
4142 ;;
4243 esac
4344 shift
4445done
4546
47+ if [[ x" ${YAMATO_JOB_ID:- } " != x" " ]]; then
48+ YAMATO=1
49+ export GITLAB_CI=1
50+ export CI_COMMIT_TAG=" ${GIT_TAG:- } "
51+ export CI_COMMIT_REF_NAME=" ${GIT_BRANCH:- } "
52+ fi
53+
4654pushd $DIR > /dev/null 2>&1
4755
48- if [[ x" $APPVEYOR " == x" " ]]; then
56+ if [[ x" ${ APPVEYOR:- } " == x" " ]]; then
4957 dotnet restore
5058fi
5159dotnet build --no-restore -c $CONFIGURATION $PUBLIC
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ CONFIGURATION=Release
1212PUBLIC=" "
1313BUILD=0
1414UPM=0
15+ UNITYVERSION=2019.2
16+ YAMATO=0
1517
1618while (( "$# " )) ; do
1719 case " $1 " in
@@ -37,19 +39,30 @@ while (( "$#" )); do
3739 -* |--* =) # unsupported flags
3840 echo " Error: Unsupported flag $1 " >&2
3941 exit 1
40- ;;
4142 ;;
4243 esac
4344 shift
4445done
4546
47+ if [[ x" ${YAMATO_JOB_ID:- } " != x" " ]]; then
48+ echo 1
49+ YAMATO=1
50+ export GITLAB_CI=1
51+ export CI_COMMIT_TAG=" ${GIT_TAG:- } "
52+ export CI_COMMIT_REF_NAME=" ${GIT_BRANCH:- } "
53+ fi
54+
4655pushd $DIR > /dev/null 2>&1
56+
4757if [[ x" $BUILD " == x" 1" ]]; then
48- if [[ x" $APPVEYOR " == x" " ]]; then
58+
59+ if [[ x" ${APPVEYOR:- } " == x" " ]]; then
4960 dotnet restore
5061 fi
5162 dotnet build --no-restore -c $CONFIGURATION $PUBLIC
63+
5264fi
65+
5366dotnet pack --no-build --no-restore -c $CONFIGURATION $PUBLIC
5467
5568if [[ x" $UPM " == x" 1" ]]; then
6477{
6578EOL
6679
67- pushd $srcdir
80+ pushd $srcdir > /dev/null 2>&1
6881 count=0
6982 for j in ` ls -d * ` ; do
70- echo $j
71- pushd $j
83+ echo " Packing $j "
84+
85+ pushd $j > /dev/null 2>&1
7286 tgz=" $( npm pack -q) "
7387 mv -f $tgz $targetdir /$tgz
7488 cp package.json $targetdir /$tgz .json
75- popd
89+ popd > /dev/null 2>&1
7690
7791 comma=" "
7892 if [[ x" $count " == x" 1" ]]; then comma=" ," ; fi
8498
8599 count=1
86100 done
87- popd
101+ popd > /dev/null 2>&1
88102
89103 cat >> $targetdir /packages.json << EOL
90104}
91105EOL
106+
92107fi
93108popd > /dev/null 2>&1
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ PUBLIC=""
1313BUILD=0
1414UPM=0
1515UNITYVERSION=2019.2
16+ YAMATO=0
1617
1718while (( "$# " )) ; do
1819 case " $1 " in
@@ -38,17 +39,23 @@ while (( "$#" )); do
3839 -* |--* =) # unsupported flags
3940 echo " Error: Unsupported flag $1 " >&2
4041 exit 1
41- ;;
4242 ;;
4343 esac
4444 shift
4545done
4646
47+ if [[ x" ${YAMATO_JOB_ID:- } " != x" " ]]; then
48+ YAMATO=1
49+ export GITLAB_CI=1
50+ export CI_COMMIT_TAG=" ${GIT_TAG:- } "
51+ export CI_COMMIT_REF_NAME=" ${GIT_BRANCH:- } "
52+ fi
53+
4754pushd $DIR > /dev/null 2>&1
4855
4956if [[ x" $BUILD " == x" 1" ]]; then
5057
51- if [[ x" $APPVEYOR " == x" " ]]; then
58+ if [[ x" ${ APPVEYOR:- } " == x" " ]]; then
5259 dotnet restore
5360 fi
5461
You can’t perform that action at this time.
0 commit comments