mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 08:30:02 +00:00
Added new CI workflow using GitHub actions.
Also - Fixed screenshot tests - Fixed code coverage - Removed appveyor - Removed circleci - Updated wdio related dependencies - Added docker image deploy to the GitHub registry
This commit is contained in:
@@ -2,17 +2,24 @@ var wd = require("../wd-helper");
|
||||
var uuid = require('uuid/v1');
|
||||
var geoServer = require("../geojson-server");
|
||||
|
||||
|
||||
var geoserver = geoServer.listen(9002);
|
||||
var testNetwork = process.env.TEST_NETWORK || "localhost";
|
||||
var geoserver;
|
||||
|
||||
module.exports = {
|
||||
startGeoserver: function(done) {
|
||||
geoserver = geoServer.listen(9002, "0.0.0.0", done);
|
||||
},
|
||||
stopGeoserver: function(done) {
|
||||
geoserver.close(done);
|
||||
geoserver = undefined;
|
||||
},
|
||||
getStyleUrl: function(styles) {
|
||||
var port = geoserver.address().port;
|
||||
return "http://localhost:"+port+"/styles/empty/"+styles.join(",");
|
||||
return "http://"+testNetwork+":"+port+"/styles/empty/"+styles.join(",");
|
||||
},
|
||||
getGeoServerUrl: function(urlPath) {
|
||||
var port = geoserver.address().port;
|
||||
return "http://localhost:"+port+"/"+urlPath;
|
||||
return "http://"+testNetwork+":"+port+"/"+urlPath;
|
||||
},
|
||||
getStyleStore: function(browser) {
|
||||
var result = browser.executeAsync(function(done) {
|
||||
|
||||
Reference in New Issue
Block a user