@egis/build-tools 11.4.1-pre.1 → 11.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/deps-cache-key.txt +14510 -0
- package/gulp/common.js +4 -1
- package/package.json +1 -1
- package/scripts/checkTestResults.py +9 -8
- package/wdio.conf.js +1 -0
package/gulp/common.js
CHANGED
|
@@ -59,7 +59,10 @@ dependenciesJson.excludes = dependenciesJson.excludes || [];
|
|
|
59
59
|
dependenciesJson.standalone = dependenciesJson.standalone || [];
|
|
60
60
|
dependenciesJson.directories = dependenciesJson.directories || {};
|
|
61
61
|
dependenciesJson.overrides = dependenciesJson.overrides || {};
|
|
62
|
-
var gitHash =
|
|
62
|
+
var gitHash = utils.sh('git rev-parse --short HEAD');
|
|
63
|
+
if (gitHash.includes('fatal')) {
|
|
64
|
+
gitHash = 'current';
|
|
65
|
+
}
|
|
63
66
|
var pkgVersion = (utils.exists('build/.version') ? utils.sh('cat build/.version') : '[unknown]');
|
|
64
67
|
var timestamp = utils.dateFormat(new Date(), '%Y-%m-%d %H:%M:%S')
|
|
65
68
|
var replaceAll = lazypipe()
|
package/package.json
CHANGED
|
@@ -12,35 +12,36 @@ MAX_ERRORS=int(sys.argv[3])
|
|
|
12
12
|
failures = 0
|
|
13
13
|
errors = 0
|
|
14
14
|
tests = 0
|
|
15
|
-
print
|
|
15
|
+
print("MIN_TESTS=%s MAX_FAIL=%s MAX_ERRORS=%s" % (MIN_TESTS, MAX_FAIL, MAX_ERRORS))
|
|
16
|
+
|
|
16
17
|
for file in glob.glob('%s/*.xml' % REPORTS):
|
|
17
18
|
try:
|
|
18
19
|
e = xml.etree.ElementTree.parse(file).getroot()
|
|
19
20
|
error= int(e.get('errors'))
|
|
20
21
|
if error > 0:
|
|
21
|
-
print
|
|
22
|
+
print(file + " errors ")
|
|
22
23
|
failures += int(e.get('failures'))
|
|
23
24
|
errors += int(e.get('errors'))
|
|
24
25
|
tests += int(e.get('tests'))
|
|
25
26
|
for tc in e.iter('testcase'):
|
|
26
27
|
tests -= len(tc.findall('skipped'))
|
|
27
|
-
except Exception,e:
|
|
28
|
+
except (Exception, e) as errors:
|
|
28
29
|
errors += 1
|
|
29
|
-
print
|
|
30
|
+
print("Failed to parse " + file)
|
|
30
31
|
|
|
31
|
-
print
|
|
32
|
+
print("tests=%s failures=%s errors=%s" % (tests, failures, errors))
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
if (errors > MAX_ERRORS):
|
|
35
|
-
print
|
|
36
|
+
print("too many errors")
|
|
36
37
|
|
|
37
38
|
if (tests < MIN_TESTS):
|
|
38
|
-
print
|
|
39
|
+
print("too few tests run %s < %s " % (tests, MIN_TESTS))
|
|
39
40
|
sys.exit(1)
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
if (failures > MAX_FAIL):
|
|
43
|
-
print
|
|
44
|
+
print("too many failures")
|
|
44
45
|
sys.exit(1)
|
|
45
46
|
|
|
46
47
|
sys.exit(0)
|
package/wdio.conf.js
CHANGED
|
@@ -119,6 +119,7 @@ module.exports = {
|
|
|
119
119
|
//
|
|
120
120
|
// Default request retries count
|
|
121
121
|
connectionRetryCount: 3,
|
|
122
|
+
waitforInterval: 500,
|
|
122
123
|
//
|
|
123
124
|
// Initialize the browser instance with a WebdriverIO plugin. The object should have the
|
|
124
125
|
// plugin name as key and the desired plugin options as properties. Make sure you have
|