forked from eclipse-theia/theia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclipse-theiaGH-147: Enabled Windows CI.
Closes eclipse-theia#147. Signed-off-by: Akos Kitta <[email protected]>
- Loading branch information
Showing
7 changed files
with
93 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
shallow_clone: true | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
platform: | ||
- x64 | ||
|
||
install: | ||
- cinst yarn | ||
- ps: npm install --global --production windows-build-tools | ||
# Open the firewall ports for selenium. | ||
- netsh advfirewall firewall add rule name="SeleniumIn" dir=in action=allow protocol=TCP localport=4444 | ||
- netsh advfirewall firewall add rule name="SeleniumOut" dir=out action=allow protocol=TCP localport=4444 | ||
|
||
before_build: | ||
- node --version && npm --version && yarn --version && python --version | ||
|
||
build_script: | ||
- yarn | ||
|
||
test_script: | ||
- yarn run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (C) 2017 TypeFox and others. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
// @ts-check | ||
const path = require('path'); | ||
const cp = require('child_process'); | ||
|
||
const lernaPath = path.resolve(__dirname, '..', 'node_modules', 'lerna', 'bin', 'lerna'); | ||
|
||
if (process.platform === 'win32') { | ||
console.log('Parallel lerna execution is disabled on Windows. Falling back to sequential execution with the \'--concurrency==1\' flag.'); | ||
if (process.argv.indexOf('--concurrency==1') === -1) { | ||
process.argv.push('--concurrency==1'); | ||
} | ||
const parallelIndex = process.argv.indexOf('--parallel'); | ||
if (parallelIndex !== -1) { | ||
process.argv[parallelIndex] = '--stream'; | ||
} | ||
console.log('Running lerna as: ' + process.argv.join(' ')); | ||
} | ||
require(lernaPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters