Merge branch 'release/2.1' into dev
This commit is contained in:
commit
69bce8ff85
|
|
@ -7,7 +7,7 @@ branches:
|
||||||
- /^release\/.*$/
|
- /^release\/.*$/
|
||||||
- /^(.*\/)?ci-.*$/
|
- /^(.*\/)?ci-.*$/
|
||||||
build_script:
|
build_script:
|
||||||
- ps: .\run.ps1 default-build
|
- ps: .\run.ps1 -ci default-build
|
||||||
on_finish:
|
on_finish:
|
||||||
- ps: 7z a testlogs.zip testlogs
|
- ps: 7z a testlogs.zip testlogs
|
||||||
- ps: Push-AppveyorArtifact testlogs.zip
|
- ps: Push-AppveyorArtifact testlogs.zip
|
||||||
|
|
@ -16,8 +16,6 @@ install:
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
||||||
ASPNETCORE_TEST_LOG_DIR: $(APPVEYOR_BUILD_FOLDER)\testlogs
|
ASPNETCORE_TEST_LOG_DIR: $(APPVEYOR_BUILD_FOLDER)\testlogs
|
||||||
test: 'off'
|
test: 'off'
|
||||||
deploy: 'off'
|
deploy: 'off'
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ services:
|
||||||
- docker
|
- docker
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
||||||
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
||||||
- SIGNALR_TESTS_VERBOSE: 1
|
- SIGNALR_TESTS_VERBOSE: 1
|
||||||
- TRAVIS_NODE_VERSION: 8.9.3
|
- TRAVIS_NODE_VERSION: 8.9.3
|
||||||
mono: none
|
mono: none
|
||||||
|
|
@ -28,4 +26,4 @@ before_install:
|
||||||
- nvm install $TRAVIS_NODE_VERSION
|
- nvm install $TRAVIS_NODE_VERSION
|
||||||
- if test "$TRAVIS_OS_NAME" == "linux"; then docker pull redis; fi
|
- if test "$TRAVIS_OS_NAME" == "linux"; then docker pull redis; fi
|
||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh --ci
|
||||||
|
|
|
||||||
|
|
@ -658,4 +658,4 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export default function(rootDir, moduleGlobals) {
|
||||||
return {
|
return {
|
||||||
input: path.join(rootDir, "dist", "cjs", "browser-index.js"),
|
input: path.join(rootDir, "dist", "cjs", "browser-index.js"),
|
||||||
output: {
|
output: {
|
||||||
file: pkg.browser,
|
file: pkg.umd,
|
||||||
format: "umd",
|
format: "umd",
|
||||||
name: pkg.umd_name,
|
name: pkg.umd_name,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "1.0.0-preview3-t000",
|
"version": "1.0.0-preview3-t000",
|
||||||
"description": "MsgPack Protocol support for ASP.NET Core SignalR",
|
"description": "MsgPack Protocol support for ASP.NET Core SignalR",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"browser": "./dist/browser/signalr-protocol-msgpack.js",
|
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
"typings": "./dist/esm/index.d.ts",
|
"typings": "./dist/esm/index.d.ts",
|
||||||
|
"umd": "./dist/browser/signalr-protocol-msgpack.js",
|
||||||
"umd_name": "signalR.protocols.msgpack",
|
"umd_name": "signalR.protocols.msgpack",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "spec"
|
"test": "spec"
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "1.0.0-preview3-t000",
|
"version": "1.0.0-preview3-t000",
|
||||||
"description": "ASP.NET Core SignalR Client",
|
"description": "ASP.NET Core SignalR Client",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"browser": "./dist/browser/signalr.js",
|
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
"typings": "./dist/esm/index.d.ts",
|
"typings": "./dist/esm/index.d.ts",
|
||||||
|
"umd": "./dist/browser/signalr.js",
|
||||||
"umd_name": "signalR",
|
"umd_name": "signalR",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "spec"
|
"test": "spec"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
version:2.1.0-preview2-15726
|
version:2.1.0-preview3-15744
|
||||||
commithash:599e691c41f502ed9e062b1822ce13b673fc916e
|
commithash:b920ce6c433f8927c42109b21e72110068ee2c2e
|
||||||
|
|
|
||||||
16
run.ps1
16
run.ps1
|
|
@ -26,12 +26,18 @@ The base url where build tools can be downloaded. Overrides the value from the c
|
||||||
.PARAMETER Update
|
.PARAMETER Update
|
||||||
Updates KoreBuild to the latest version even if a lock file is present.
|
Updates KoreBuild to the latest version even if a lock file is present.
|
||||||
|
|
||||||
|
.PARAMETER Reinstall
|
||||||
|
Re-installs KoreBuild
|
||||||
|
|
||||||
.PARAMETER ConfigFile
|
.PARAMETER ConfigFile
|
||||||
The path to the configuration file that stores values. Defaults to korebuild.json.
|
The path to the configuration file that stores values. Defaults to korebuild.json.
|
||||||
|
|
||||||
.PARAMETER ToolsSourceSuffix
|
.PARAMETER ToolsSourceSuffix
|
||||||
The Suffix to append to the end of the ToolsSource. Useful for query strings in blob stores.
|
The Suffix to append to the end of the ToolsSource. Useful for query strings in blob stores.
|
||||||
|
|
||||||
|
.PARAMETER CI
|
||||||
|
Sets up CI specific settings and variables.
|
||||||
|
|
||||||
.PARAMETER Arguments
|
.PARAMETER Arguments
|
||||||
Arguments to be passed to the command
|
Arguments to be passed to the command
|
||||||
|
|
||||||
|
|
@ -65,8 +71,10 @@ param(
|
||||||
[string]$ToolsSource,
|
[string]$ToolsSource,
|
||||||
[Alias('u')]
|
[Alias('u')]
|
||||||
[switch]$Update,
|
[switch]$Update,
|
||||||
[string]$ConfigFile,
|
[switch]$Reinstall,
|
||||||
[string]$ToolsSourceSuffix,
|
[string]$ToolsSourceSuffix,
|
||||||
|
[string]$ConfigFile = $null,
|
||||||
|
[switch]$CI,
|
||||||
[Parameter(ValueFromRemainingArguments = $true)]
|
[Parameter(ValueFromRemainingArguments = $true)]
|
||||||
[string[]]$Arguments
|
[string[]]$Arguments
|
||||||
)
|
)
|
||||||
|
|
@ -93,6 +101,10 @@ function Get-KoreBuild {
|
||||||
$version = $version.TrimStart('version:').Trim()
|
$version = $version.TrimStart('version:').Trim()
|
||||||
$korebuildPath = Join-Paths $DotNetHome ('buildtools', 'korebuild', $version)
|
$korebuildPath = Join-Paths $DotNetHome ('buildtools', 'korebuild', $version)
|
||||||
|
|
||||||
|
if ($Reinstall -and (Test-Path $korebuildPath)) {
|
||||||
|
Remove-Item -Force -Recurse $korebuildPath
|
||||||
|
}
|
||||||
|
|
||||||
if (!(Test-Path $korebuildPath)) {
|
if (!(Test-Path $korebuildPath)) {
|
||||||
Write-Host -ForegroundColor Magenta "Downloading KoreBuild $version"
|
Write-Host -ForegroundColor Magenta "Downloading KoreBuild $version"
|
||||||
New-Item -ItemType Directory -Path $korebuildPath | Out-Null
|
New-Item -ItemType Directory -Path $korebuildPath | Out-Null
|
||||||
|
|
@ -188,7 +200,7 @@ $korebuildPath = Get-KoreBuild
|
||||||
Import-Module -Force -Scope Local (Join-Path $korebuildPath 'KoreBuild.psd1')
|
Import-Module -Force -Scope Local (Join-Path $korebuildPath 'KoreBuild.psd1')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Set-KoreBuildSettings -ToolsSource $ToolsSource -DotNetHome $DotNetHome -RepoPath $Path -ConfigFile $ConfigFile
|
Set-KoreBuildSettings -ToolsSource $ToolsSource -DotNetHome $DotNetHome -RepoPath $Path -ConfigFile $ConfigFile -CI:$CI
|
||||||
Invoke-KoreBuildCommand $Command @Arguments
|
Invoke-KoreBuildCommand $Command @Arguments
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
|
|
||||||
16
run.sh
16
run.sh
|
|
@ -14,10 +14,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
[ -z "${DOTNET_HOME:-}" ] && DOTNET_HOME="$HOME/.dotnet"
|
[ -z "${DOTNET_HOME:-}" ] && DOTNET_HOME="$HOME/.dotnet"
|
||||||
verbose=false
|
verbose=false
|
||||||
update=false
|
update=false
|
||||||
|
reinstall=false
|
||||||
repo_path="$DIR"
|
repo_path="$DIR"
|
||||||
channel=''
|
channel=''
|
||||||
tools_source=''
|
tools_source=''
|
||||||
tools_source_suffix=''
|
tools_source_suffix=''
|
||||||
|
ci=false
|
||||||
|
|
||||||
#
|
#
|
||||||
# Functions
|
# Functions
|
||||||
|
|
@ -38,6 +40,8 @@ __usage() {
|
||||||
echo " -s|--tools-source|-ToolsSource <URL> The base url where build tools can be downloaded. Overrides the value from the config file."
|
echo " -s|--tools-source|-ToolsSource <URL> The base url where build tools can be downloaded. Overrides the value from the config file."
|
||||||
echo " --tools-source-suffix|-ToolsSourceSuffix <SUFFIX> The suffix to append to tools-source. Useful for query strings."
|
echo " --tools-source-suffix|-ToolsSourceSuffix <SUFFIX> The suffix to append to tools-source. Useful for query strings."
|
||||||
echo " -u|--update Update to the latest KoreBuild even if the lock file is present."
|
echo " -u|--update Update to the latest KoreBuild even if the lock file is present."
|
||||||
|
echo " --reinstall Reinstall KoreBuild."
|
||||||
|
echo " --ci Apply CI specific settings and environment variables."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Description:"
|
echo "Description:"
|
||||||
echo " This function will create a file \$DIR/korebuild-lock.txt. This lock file can be committed to source, but does not have to be."
|
echo " This function will create a file \$DIR/korebuild-lock.txt. This lock file can be committed to source, but does not have to be."
|
||||||
|
|
@ -62,6 +66,10 @@ get_korebuild() {
|
||||||
version="$(echo "${version#version:}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
|
version="$(echo "${version#version:}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
|
||||||
local korebuild_path="$DOTNET_HOME/buildtools/korebuild/$version"
|
local korebuild_path="$DOTNET_HOME/buildtools/korebuild/$version"
|
||||||
|
|
||||||
|
if [ "$reinstall" = true ] && [ -d "$korebuild_path" ]; then
|
||||||
|
rm -rf "$korebuild_path"
|
||||||
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
if [ ! -d "$korebuild_path" ]; then
|
if [ ! -d "$korebuild_path" ]; then
|
||||||
mkdir -p "$korebuild_path"
|
mkdir -p "$korebuild_path"
|
||||||
|
|
@ -175,6 +183,12 @@ while [[ $# -gt 0 ]]; do
|
||||||
-u|--update|-Update)
|
-u|--update|-Update)
|
||||||
update=true
|
update=true
|
||||||
;;
|
;;
|
||||||
|
--reinstall|-[Rr]einstall)
|
||||||
|
reinstall=true
|
||||||
|
;;
|
||||||
|
--ci)
|
||||||
|
ci=true
|
||||||
|
;;
|
||||||
--verbose|-Verbose)
|
--verbose|-Verbose)
|
||||||
verbose=true
|
verbose=true
|
||||||
;;
|
;;
|
||||||
|
|
@ -227,5 +241,5 @@ fi
|
||||||
[ -z "$tools_source" ] && tools_source='https://aspnetcore.blob.core.windows.net/buildtools'
|
[ -z "$tools_source" ] && tools_source='https://aspnetcore.blob.core.windows.net/buildtools'
|
||||||
|
|
||||||
get_korebuild
|
get_korebuild
|
||||||
set_korebuildsettings "$tools_source" "$DOTNET_HOME" "$repo_path" "$config_file"
|
set_korebuildsettings "$tools_source" "$DOTNET_HOME" "$repo_path" "$config_file" "$ci"
|
||||||
invoke_korebuild_command "$command" "$@"
|
invoke_korebuild_command "$command" "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue