Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
4cd50470
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4cd50470
编写于
9月 04, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build
💄
上级
e5db2c31
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
7 deletion
+21
-7
build/azure-pipelines/darwin/product-build-darwin.yml
build/azure-pipelines/darwin/product-build-darwin.yml
+3
-0
build/azure-pipelines/linux/product-build-linux.yml
build/azure-pipelines/linux/product-build-linux.yml
+3
-0
build/azure-pipelines/win32/product-build-win32.yml
build/azure-pipelines/win32/product-build-win32.yml
+3
-0
extensions/vscode-test-resolver/src/extension.ts
extensions/vscode-test-resolver/src/extension.ts
+1
-1
scripts/test-integration.bat
scripts/test-integration.bat
+6
-3
scripts/test-integration.sh
scripts/test-integration.sh
+5
-3
未找到文件。
build/azure-pipelines/darwin/product-build-darwin.yml
浏览文件 @
4cd50470
...
...
@@ -102,6 +102,9 @@ steps:
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
-
script
:
|
# Figure out the full absolute path of the product we just built
# including the remote server and configure the integration tests
# to run with these builds instead of running out of sources.
set -e
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
APP_NAME="`ls $APP_ROOT | head -n 1`"
...
...
build/azure-pipelines/linux/product-build-linux.yml
浏览文件 @
4cd50470
...
...
@@ -105,6 +105,9 @@ steps:
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
-
script
:
|
# Figure out the full absolute path of the product we just built
# including the remote server and configure the integration tests
# to run with these builds instead of running out of sources.
set -e
APP_ROOT=$(agent.builddirectory)/VSCode-linux-x64
APP_NAME=$(node -p "require(\"$APP_ROOT/resources/app/product.json\").applicationName")
...
...
build/azure-pipelines/win32/product-build-win32.yml
浏览文件 @
4cd50470
...
...
@@ -113,6 +113,9 @@ steps:
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
-
powershell
:
|
# Figure out the full absolute path of the product we just built
# including the remote server and configure the integration tests
# to run with these builds instead of running out of sources.
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
$AppRoot = "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
...
...
extensions/vscode-test-resolver/src/extension.ts
浏览文件 @
4cd50470
...
...
@@ -91,7 +91,7 @@ export function activate(context: vscode.ExtensionContext) {
extHostProcess
=
cp
.
spawn
(
serverCommandPath
,
commandArgs
,
{
env
,
cwd
:
vscodePath
});
}
else
{
const
serverCommand
=
process
.
platform
===
'
win32
'
?
'
server.cmd
'
:
'
server.sh
'
;
let
serverLocation
=
env
[
'
VSCODE_REMOTE_SERVER_PATH
'
];
// support environment
let
serverLocation
=
env
[
'
VSCODE_REMOTE_SERVER_PATH
'
];
// support environment
variable to specify location of server on disk
if
(
!
serverLocation
)
{
const
serverBin
=
path
.
join
(
remoteDataDir
,
'
bin
'
);
progress
.
report
({
message
:
'
Installing VSCode Server
'
});
...
...
scripts/test-integration.bat
浏览文件 @
4cd50470
...
...
@@ -5,11 +5,14 @@ pushd %~dp0\..
set
VSCODEUSERDATADIR
=
%TMP%
\vscodeuserfolder
-
%RANDOM%
-
%TIME
:
~
6
,
5
%
:: Figure out which Electron to use for running tests
if
"
%INTEGRATION_TEST_ELECTRON_PATH%
"
==
""
(
::
code
.bat
makes
sure
Test
Extensions
are
compiled
::
Run
out
of
sources
:
no
need
to
compile
as
code
.sh
takes
care
of
it
set
INTEGRATION_TEST_ELECTRON_PATH
=
.\scripts\code.bat
echo
"Running integration tests out of sources."
)
else
(
::
Compile
Test
E
xtensions
::
Run
from
a
built
:
need
to
compile
all
test
e
xtensions
call
yarn
gulp
compile
-extension
:vscode
-api-tests
call
yarn
gulp
compile
-extension
:vscode
-colorize-tests
call
yarn
gulp
compile
-extension
:markdown
-language-features
...
...
@@ -18,7 +21,7 @@ if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
call
yarn
gulp
compile
-extension
:html
-language-features-server
call
yarn
gulp
compile
-extension
:json
-language-features-server
echo
"
Using
%INTEGRATION_TEST_ELECTRON_PATH%
as Electron path
"
echo
"
Running integration tests with '
%INTEGRATION_TEST_ELECTRON_PATH%
' as build.
"
)
:: Integration & performance tests in AMD
...
...
scripts/test-integration.sh
浏览文件 @
4cd50470
...
...
@@ -15,10 +15,12 @@ cd $ROOT
# Figure out which Electron to use for running tests
if
[
-z
"
$INTEGRATION_TEST_ELECTRON_PATH
"
]
then
#
code.sh makes sure Test Extensions are compiled
#
Run out of sources: no need to compile as code.sh takes care of it
INTEGRATION_TEST_ELECTRON_PATH
=
"./scripts/code.sh"
echo
"Running integration tests out of sources."
else
#
Compile Test E
xtensions
#
Run from a built: need to compile all test e
xtensions
yarn gulp compile-extension:vscode-api-tests
yarn gulp compile-extension:vscode-colorize-tests
yarn gulp compile-extension:markdown-language-features
...
...
@@ -27,7 +29,7 @@ else
yarn gulp compile-extension:html-language-features-server
yarn gulp compile-extension:json-language-features-server
echo
"
Using
$INTEGRATION_TEST_ELECTRON_PATH
as Electron path
"
echo
"
Running integration tests with '
$INTEGRATION_TEST_ELECTRON_PATH
' as build.
"
fi
# Integration tests in AMD
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录