mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Further attempt to make Djna.nosys=true work on AppVeyor
This commit is contained in:
@@ -27,9 +27,8 @@ artifacts:
|
|||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
test_script:
|
test_script:
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
- npm install -g selenium-standalone
|
- npm install selenium-standalone
|
||||||
- selenium-standalone install
|
- ps: Start-Process node './start-selenium.js'
|
||||||
- ps: Start-Process selenium-standalone 'start','-Djna.nosys=true'
|
|
||||||
- ps: Push-Location
|
- ps: Push-Location
|
||||||
- cd test
|
- cd test
|
||||||
- npm install
|
- npm install
|
||||||
|
|||||||
30
test/start-selenium.js
Normal file
30
test/start-selenium.js
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
var seleniumStandalone = require('selenium-standalone');
|
||||||
|
|
||||||
|
var installOptions = {
|
||||||
|
progressCb: function(totalLength, progressLength, chunkLength) {
|
||||||
|
var percent = 100 * progressLength / totalLength;
|
||||||
|
console.log('Installing selenium-standalone: ' + percent.toFixed(0) + '%');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
console.log('Installing selenium-standalone...');
|
||||||
|
seleniumStandalone.install(installOptions, function(err) {
|
||||||
|
if (err) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
|
var startOptions = {
|
||||||
|
javaArgs: ['-Djna.nosys=true'],
|
||||||
|
spawnOptions: { stdio: 'inherit' }
|
||||||
|
};
|
||||||
|
|
||||||
|
console.log('Starting selenium-standalone...');
|
||||||
|
seleniumStandalone.start(startOptions, function(err, seleniumProcess) {
|
||||||
|
if (err) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Started Selenium server');
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user