Update CI to add repository field

This commit is contained in:
Mathieu Rivest 2018-12-11 14:10:13 -05:00
Родитель afe5f45716
Коммит 123bb4b0c0
8 изменённых файлов: 63 добавлений и 10 удалений

Просмотреть файл

@ -1,5 +1,11 @@
image: node:6.10.0
variables:
BINTRAY_STAGING: 'https://staging-packages.unity.com'
before_script:
- chmod +x build.sh
stages:
- validate
- publish
@ -15,11 +21,11 @@ package:
- master
- /versions/(0|[1-9]\d*)\.(0|[1-9]\d*)/master$/
script:
- npm pack
- ./build.sh package-ci pack --git-head $CI_COMMIT_SHA --git-url $CI_REPOSITORY_URL
artifacts:
name: "Package-$CI_COMMIT_REF_NAME"
paths:
- com.unity.immediate-window-*.tgz
- com.unity.immediate-window*.tgz
expire_in: 1 year
# Validate publish
@ -39,5 +45,5 @@ publish:
# Only semantic version tags will be published
- /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*).*/
script:
- curl -u $USER_NAME:$API_KEY https://staging-packages.unity.com/auth > .npmrc
- npm publish
- ./build.sh npm auth "$BINTRAY_STAGING" "$USER_NAME" "$API_KEY"
- ./build.sh package-ci publish --git-head $CI_COMMIT_SHA --git-url $CI_REPOSITORY_URL

Просмотреть файл

@ -4,6 +4,9 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [1.0.0-preview.3] - 2018-12-11
- Fixed CI for publishing
## [1.0.0-preview.2] - 2018-12-07
- Fixed key up/down on console input

Просмотреть файл

@ -6,11 +6,6 @@ The immediate window is used to instantly evaluate C# code inside the Unity Edit
## Installation
It is currently only available as a *preview package*.
Add ```"registry": "https://staging-packages.unity.com",``` to
your project manifest and install from the *Package Manager Window*.
The window is accessible through the ```Window/Analysis/Immediate Window``` editor menu.
## Overview

19
build.bat Normal file
Просмотреть файл

@ -0,0 +1,19 @@
@ECHO OFF
REM Wrapper script to make running the node.js CI script a little quicker.
REM Arguments are same as for index.js
SET BUILD_SCRIPT="./.build_script/node_modules/upm-template-utils/index.js"
IF NOT EXIST %BUILD_SCRIPT% (
mkdir "./.build_script/node_modules" >NUL
CD .build_script
CALL npm install upm-template-utils --registry https://api.bintray.com/npm/unity/unity-staging --no-save --loglevel error >NUL
CD ..
)
IF "%1" == "" (
node %BUILD_SCRIPT%
) ELSE (
node %BUILD_SCRIPT% %*
)

7
build.bat.meta Normal file
Просмотреть файл

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: afbf08e0596dd452396eb582f820cfc1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

16
build.sh Executable file
Просмотреть файл

@ -0,0 +1,16 @@
#!/bin/sh
BUILD_SCRIPT="./.build_script/node_modules/upm-template-utils/index.js"
if [ ! -f $BUILD_SCRIPT ]; then
mkdir -p "./.build_script/node_modules"
cd .build_script
npm install upm-template-utils --registry https://api.bintray.com/npm/unity/unity-staging --no-save --loglevel error >/dev/null
cd ..
fi
if [ -z $1 ]; then
node $BUILD_SCRIPT
else
node $BUILD_SCRIPT $*
fi

7
build.sh.meta Normal file
Просмотреть файл

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 249c06ba47b1b43288fad5b438cbecad
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Просмотреть файл

@ -1,7 +1,7 @@
{
"name": "com.unity.immediate-window",
"displayName": "Immediate Window",
"version": "1.0.0-preview.2",
"version": "1.0.0-preview.3",
"unity": "2019.1",
"description": "The Immediate Window provides a way to rapidly edit and debug code. It is not a full development environment, instead it is to be used for API discovery and rapid prototyping.",
"author": {"name": "Unity Technologies", "email": "mathieur@unity3d.com", "url": ""},