Skip to content

Commit a002b1a

Browse files
committed
Drop PhantomJS for testing
1 parent c7fa753 commit a002b1a

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

testem.js

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
/*jshint node:true*/
2-
module.exports = {
3-
"framework": "qunit",
4-
"test_page": "tests/index.html?hidepassed",
5-
"disable_watching": true,
6-
"launch_in_ci": [
7-
"Chrome"
1+
let options = {
2+
test_page: 'tests/index.html?hidepassed',
3+
disable_watching: true,
4+
launch_in_ci: [
5+
'Chrome'
86
],
9-
"launch_in_dev": [
10-
"PhantomJS",
11-
"Chrome"
12-
],
13-
"browser_args": {
14-
"Chrome": [
15-
"--disable-gpu",
16-
"--no-sandbox"
17-
]
18-
}
7+
launch_in_dev: [
8+
'Chrome'
9+
]
1910
};
11+
12+
if (process.env.TRAVIS) {
13+
options.browser_args = {
14+
Chrome: [
15+
// --no-sandbox is needed when running Chrome inside a container
16+
'--no-sandbox',
17+
'--disable-gpu',
18+
'--headless',
19+
'--remote-debugging-port=0',
20+
'--window-size=1440,900'
21+
].filter(Boolean)
22+
};
23+
}
24+
25+
module.exports = options;

0 commit comments

Comments
 (0)