win32 tfs builds

This commit is contained in:
Joao Moreno
2017-05-09 11:35:22 +02:00
parent 484a2db066
commit 650b75a94a
5 changed files with 23 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ const indentationFilter = [
'**',
'!ThirdPartyNotices.txt',
'!**/*.md',
'!**/*.ps1',
'!**/*.template',
'!**/*.yml',
'!**/lib/**',

View File

@@ -0,0 +1,5 @@
. .\lib.ps1
exec { & .\scripts\npm.bat install }
exec { & npm run gulp -- mixin }
exec { & npm run gulp -- --max_old_space_size=4096 vscode-win32-min }

10
build/tfs/win32/lib.ps1 Normal file
View File

@@ -0,0 +1,10 @@
# stop when there's an error
$ErrorActionPreference = 'Stop'
# throw when a process exits with something other than 0
function exec([scriptblock]$cmd, [string]$errorMessage = "Error executing command: " + $cmd) {
& $cmd
if ($LastExitCode -ne 0) {
throw $errorMessage
}
}

View File

@@ -0,0 +1,5 @@
. .\lib.ps1
exec { & npm run gulp -- electron }
exec { & .\scripts\test.bat --build --reporter dot }
# exec { & .\scripts\test-integration.bat }

View File

@@ -16,7 +16,8 @@
"watch": "gulp watch --max_old_space_size=4096",
"monaco-editor-setup": "node scripts/monaco-editor-setup.js",
"monaco-editor-test": "mocha --only-monaco-editor",
"precommit": "node build/gulpfile.hygiene.js"
"precommit": "node build/gulpfile.hygiene.js",
"gulp": "gulp"
},
"dependencies": {
"applicationinsights": "0.17.1",