提交 baf6fbc7 编写于 作者: J Joao Moreno

update continuous build

fixes #48800
上级 97f7c24b
......@@ -9,22 +9,32 @@ phases:
inputs:
versionSpec: "1.3.2"
- powershell: |
function exec([scriptblock]$cmd, [string]$errorMessage = "Error executing command: " + $cmd) { & $cmd; if ($LastExitCode -ne 0) { throw $errorMessage } }
$ErrorActionPreference = "Stop"
exec { & yarn }
exec { & .\node_modules\.bin\gulp electron }
exec { & npm run gulp -- hygiene }
exec { & .\node_modules\.bin\tsc -p .\src\tsconfig.monaco.json --noEmit }
exec { & npm run compile }
exec { & node build/lib/builtInExtensions.js }
name: build
yarn
displayName: Install Dependencies
- powershell: |
yarn gulp electron
displayName: Download Electron
- powershell: |
yarn gulp hygiene
displayName: Run Hygiene Checks
- powershell: |
yarn check-monaco-editor-compilation
displayName: Run Monaco Editor Checks
- powershell: |
yarn compile
displayName: Compile Sources
- powershell: |
function exec([scriptblock]$cmd, [string]$errorMessage = "Error executing command: " + $cmd) { & $cmd; if ($LastExitCode -ne 0) { throw $errorMessage } }
$ErrorActionPreference = "Stop"
exec { & .\scripts\test.bat --tfs }
exec { & .\scripts\test-integration.bat }
exec { & yarn smoketest --screenshots "$(Build.ArtifactStagingDirectory)\artifacts" --log "$(Build.ArtifactStagingDirectory)\artifacts\smoketest.log" }
name: test
yarn sync-builtin-extensions
displayName: Download Built-in Extensions
- powershell: |
.\scripts\test.bat --tfs
displayName: Run Unit Tests
- powershell: |
.\scripts\test-integration.bat
displayName: Run Integration Tests
- powershell: |
yarn smoketest --screenshots "$(Build.ArtifactStagingDirectory)\artifacts" --log "$(Build.ArtifactStagingDirectory)\artifacts\smoketest.log"
displayName: Run Smoke Tests
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts'
......@@ -35,16 +45,16 @@ phases:
- phase: Linux
queue: Hosted Linux Preview
steps:
- script: |
set -e
apt-get update
apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 libgconf-2-4 dbus xvfb libgtk-3-0
cp build/tfs/linux/x64/xvfb.init /etc/init.d/xvfb
chmod +x /etc/init.d/xvfb
update-rc.d xvfb defaults
ln -sf /bin/dbus-daemon /usr/bin/dbus-daemon
service xvfb start
service dbus start
# - script: |
# set -e
# apt-get update
# apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 libgconf-2-4 dbus xvfb libgtk-3-0
# cp build/tfs/linux/x64/xvfb.init /etc/init.d/xvfb
# chmod +x /etc/init.d/xvfb
# update-rc.d xvfb defaults
# ln -sf /bin/dbus-daemon /usr/bin/dbus-daemon
# service xvfb start
# service dbus start
- task: NodeTool@0
inputs:
versionSpec: "8.9.1"
......@@ -52,21 +62,26 @@ phases:
inputs:
versionSpec: "1.3.2"
- script: |
set -e
yarn
npm run gulp -- electron-x64
displayName: Install Dependencies
- script: |
yarn gulp electron-x64
displayName: Download Electron
- script: |
set -e
npm run gulp -- hygiene
./node_modules/.bin/tsc -p ./src/tsconfig.monaco.json --noEmit
npm run compile
node build/lib/builtInExtensions.js
name: build
yarn gulp hygiene
displayName: Run Hygiene Checks
- script: |
yarn check-monaco-editor-compilation
displayName: Run Monaco Editor Checks
- script: |
yarn compile
displayName: Compile Sources
- script: |
yarn sync-builtin-extensions
displayName: Download Built-in Extensions
- script: |
set -e
DISPLAY=:10 ./scripts/test.sh --tfs
# DISPLAY=:10 ./scripts/test-integration.sh
name: test
displayName: Run Unit Tests
- phase: macOS
queue: Hosted macOS Preview
......@@ -78,22 +93,32 @@ phases:
inputs:
versionSpec: "1.3.2"
- script: |
set -e
yarn
npm run gulp -- electron-x64
displayName: Install Dependencies
- script: |
yarn gulp electron-x64
displayName: Download Electron
- script: |
yarn gulp hygiene
displayName: Run Hygiene Checks
- script: |
set -e
npm run gulp -- hygiene
./node_modules/.bin/tsc -p ./src/tsconfig.monaco.json --noEmit
npm run compile
node build/lib/builtInExtensions.js
name: build
yarn check-monaco-editor-compilation
displayName: Run Monaco Editor Checks
- script: |
yarn compile
displayName: Compile Sources
- script: |
yarn sync-builtin-extensions
displayName: Download Built-in Extensions
- script: |
set -e
./scripts/test.sh --tfs
displayName: Run Unit Tests
- script: |
./scripts/test-integration.sh
displayName: Run Integration Tests
- script: |
yarn smoketest --screenshots "$(Build.ArtifactStagingDirectory)/artifacts" --log "$(Build.ArtifactStagingDirectory)/artifacts/smoketest.log"
name: test
displayName: Run Smoke Tests
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts'
......
......@@ -20,7 +20,9 @@
"update-grammars": "node build/npm/update-all-grammars.js",
"update-localization-extension": "node build/npm/update-localization-extension.js",
"smoketest": "cd test/smoke && mocha",
"monaco-compile-check": "tsc -p src/tsconfig.monaco.json --noEmit"
"monaco-compile-check": "tsc -p src/tsconfig.monaco.json --noEmit",
"download-builtin-extensions": "node build/lib/builtInExtensions.js",
"check-monaco-editor-compilation": "tsc -p src/tsconfig.monaco.json --noEmit"
},
"dependencies": {
"applicationinsights": "0.18.0",
......@@ -134,4 +136,4 @@
"windows-mutex": "^0.2.0",
"windows-process-tree": "0.2.2"
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册