1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00

Make tests run on Node.js 5

This commit is contained in:
squidfunk 2017-02-09 19:01:23 +01:00
parent 0beec63367
commit d75aec1b7e
3 changed files with 11 additions and 14 deletions

View File

@ -27,10 +27,10 @@ node_js:
- 6 - 6
- 7 - 7
# Build visual tests on Node.js 7 # Build visual tests separately
matrix: matrix:
include: include:
- node_js: 7 - node_js: 5
addons: addons:
apt: apt:
sources: sources:

View File

@ -85,10 +85,12 @@ export default (gulp, config, args) => {
caps.public = "private" caps.public = "private"
caps.name = id caps.name = id
/* Associate build with job when in CI */ /* Increase retries to omit flaky tests and make results public */
if (process.env.CI && process.env.TRAVIS) if (process.env.CI && process.env.TRAVIS) {
gemini.browsers[key].retry = 3
caps.public = "public" caps.public = "public"
} }
}
/* Start Gemini and return runner upon finish */ /* Start Gemini and return runner upon finish */
return new Gemini(gemini).test(`${config.tests.visual}/suites`, { return new Gemini(gemini).test(`${config.tests.visual}/suites`, {

View File

@ -9,8 +9,7 @@
"platform": "Windows 10", "platform": "Windows 10",
"screenResolution": "1280x1024", "screenResolution": "1280x1024",
"recordVideo": "false" "recordVideo": "false"
}, }
"retry": 3
}, },
"firefox": { "firefox": {
"desiredCapabilities": { "desiredCapabilities": {
@ -19,8 +18,7 @@
"platform": "Windows 10", "platform": "Windows 10",
"screenResolution": "1280x1024", "screenResolution": "1280x1024",
"recordVideo": "false" "recordVideo": "false"
}, }
"retry": 3
}, },
"edge": { "edge": {
"desiredCapabilities": { "desiredCapabilities": {
@ -28,8 +26,7 @@
"platform": "Windows 10", "platform": "Windows 10",
"screenResolution": "1280x1024", "screenResolution": "1280x1024",
"recordVideo": "false" "recordVideo": "false"
}, }
"retry": 3
}, },
"ie11": { "ie11": {
"desiredCapabilities": { "desiredCapabilities": {
@ -38,8 +35,7 @@
"platform": "Windows 10", "platform": "Windows 10",
"screenResolution": "1280x1024", "screenResolution": "1280x1024",
"recordVideo": "false" "recordVideo": "false"
}, }
"retry": 3
}, },
"ie10": { "ie10": {
"desiredCapabilities": { "desiredCapabilities": {
@ -48,8 +44,7 @@
"platform": "Windows 8", "platform": "Windows 8",
"screenResolution": "1280x1024", "screenResolution": "1280x1024",
"recordVideo": "false" "recordVideo": "false"
}, }
"retry": 3
} }
}, },
"system": { "system": {