Skip to content

Commit bbe801f

Browse files
authored
Merge pull request #2258 from Azure/master
Merge master into stable for release 2.8.0
2 parents 13f6422 + 85b0241 commit bbe801f

232 files changed

Lines changed: 12853 additions & 9839 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
# they will be requested for review when someone opens a
4+
# pull request.
5+
6+
* @bgklein @cRui861 @dpwatrous @paterasMSFT @gingi
7+
8+
# Builds
9+
/.vsts/ @bgklein @cRui861 @dpwatrous

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ coverage/
1212
.nyc_output/
1313
coverage.lcov
1414
documentation/
15+
.python-version
1516

1617
# Ignore the english compiled file
1718
i18n/resources.en.json

.vscode/launch.json

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Launch",
5+
"name": "Debug: Main",
66
"type": "node",
77
"request": "launch",
88
"protocol": "inspector",
99
"program": "${workspaceRoot}/src/client/main.ts",
1010
"stopOnEntry": false,
11-
"args": [],
11+
"args": [
12+
"--remote-debugging-port=9222",
13+
"--nolazy"
14+
],
1215
"cwd": "${workspaceRoot}",
1316
"preLaunchTask": "build-client",
1417
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
1518
"windows": {
1619
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
1720
},
18-
"runtimeArgs": [
19-
"--remote-debugging-port=9222",
20-
"--nolazy"
21-
],
2221
"env": {
2322
"NODE_ENV": "development",
2423
"HOT": "1"
@@ -28,17 +27,62 @@
2827
"sourceMaps": true,
2928
"outFiles": [
3029
"${workspaceRoot}/build/**/*.js"
31-
]
30+
],
31+
"presentation": {
32+
"hidden": false,
33+
"group": "Debug",
34+
"order": 20
35+
}
3236
},
3337
{
34-
"name": "Attach to Process",
38+
"name": "Attach: Renderer",
3539
"type": "chrome",
3640
"request": "attach",
3741
"port": 9222,
3842
"sourceMaps": true,
3943
"trace": "verbose",
4044
"url": "file://*",
41-
"webRoot": "${workspaceRoot}/build"
45+
"webRoot": "${workspaceRoot}/build",
46+
"timeout": 30000,
47+
"presentation": {
48+
"hidden": false,
49+
"group": "Debug",
50+
"order": 30
51+
}
52+
},
53+
{
54+
"name": "Test: Client",
55+
"type": "node",
56+
"request": "launch",
57+
"protocol": "inspector",
58+
"program": "${workspaceRoot}/test/client/run-jasmine.js",
59+
"cwd": "${workspaceRoot}",
60+
"runtimeExecutable": "node",
61+
"runtimeArgs": [
62+
"--nolazy"
63+
],
64+
"env": {
65+
"NODE_ENV": "test"
66+
},
67+
"presentation": {
68+
"hidden": false,
69+
"group": "Test",
70+
"order": 10
71+
}
72+
}
73+
],
74+
"compounds": [
75+
{
76+
"name": "Debug: All",
77+
"configurations": [
78+
"Debug: Main",
79+
"Attach: Renderer"
80+
],
81+
"presentation": {
82+
"hidden": false,
83+
"group": "Debug",
84+
"order": 10
85+
}
4286
}
4387
]
4488
}

.vsts/darwin/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
steps:
22
- template: ./darwin-dependencies.yml
3-
- script: npm run build-and-pack
3+
- script: |
4+
set -e
5+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
6+
npm run build-and-pack
47
displayName: Build and pack
58
- template: ../common/publish-artifacts.yml
69
parameters:
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
steps:
22
- template: ../dependencies.yml
3-
- script: npm config set python $(which python)
4-
displayName: Set npm python2 path
53
- template: ../pyenv.yml
64
- script: |
75
set -e
8-
node --version
9-
npm config list
10-
npm install -g npm@latest
11-
npm --version
12-
npm install -g node-gyp node-pre-gyp
13-
npm i --save-dev node@8.15.0
14-
npm install
15-
pip install --upgrade pip
6+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
7+
python --version
168
pip install -r python/requirements.txt
17-
displayName: Install dependencies
9+
echo "Node.js version $(node --version)"
10+
echo "NPM version $(npm --version)"
11+
npm ci
12+
displayName: Install MacOS dependencies

.vsts/darwin/distribution.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
steps:
22
- template: ./darwin-dependencies.yml
33
- script: |
4+
set -e
5+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
46
npm run -s build:prod
57
npm run -s build-python
68
npm run -s package darwin-app
@@ -14,6 +16,8 @@ steps:
1416
1517
- template: ./sign.yml
1618
- script: |
19+
set -e
20+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
1721
unzip ./release/BatchExplorer*.zip -d ./release/mac
1822
ls ./release/mac
1923
rm -f ./release/mac/*.pkg

.vsts/dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
2-
- powershell: ./scripts/azpipelines/build-type.ps1 "$(Build.SourceBranch)"
2+
- powershell: ./scripts/azpipelines/build-type.ps1 "$(Build.SourceBranch)" "$(Build.BuildNumber)"
33
displayName: Resolve build type
44

55
- task: NodeTool@0
66
inputs:
7-
versionSpec: '10.11.x'
7+
versionSpec: '12.18.x'

.vsts/distribution.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
jobs:
33
- job: Linux
44
pool:
5-
vmImage: ubuntu-16.04
5+
vmImage: ubuntu-18.04
66
steps:
77
- template: ./linux/distribution.yml
88

99
- job: MacOS
1010
pool:
11-
vmImage: macOS-10.14
11+
vmImage: macOS-10.15
1212
demands: xcode
1313
steps:
1414
- template: ./darwin/distribution.yml

.vsts/linux/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66

77
- script: |
88
export DISPLAY=:99
9-
xvfb-run npm run test
9+
xvfb-run --server-args '-screen 0 1024x768x24' npm run test
1010
displayName: Run tests
1111
1212
- task: PublishTestResults@2
@@ -22,7 +22,10 @@ steps:
2222
- script: codecov -t $(codecov.uploadToken)
2323
displayName: Upload code coverage to codecov
2424

25-
- script: npm run build-and-pack
25+
- script: |
26+
set -e
27+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
28+
npm run build-and-pack
2629
displayName: Build and pack
2730
2831
- script: npm run lint

.vsts/linux/distribution.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
steps:
22
- template: ./linux-dependencies.yml
3-
- script: npm run build-and-pack
3+
- script: |
4+
set -e
5+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
6+
npm run build-and-pack
47
displayName: Build and pack
5-
- script: npm run package linux-manifest
8+
- script: |
9+
set -e
10+
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
11+
npm run package linux-manifest
612
displayName: Create manifest
713
- template: ../common/publish-artifacts.yml
814
parameters:

0 commit comments

Comments
 (0)