Skip to content

Commit bb430da

Browse files
committed
add travis ci
1 parent 1d140a2 commit bb430da

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
dist: trusty
2+
sudo: false
3+
4+
language: node_js
5+
node_js:
6+
- '8'
7+
8+
addons:
9+
apt:
10+
sources:
11+
- google-chrome
12+
packages:
13+
- google-chrome-stable
14+
15+
cache:
16+
directories:
17+
- ./node_modules
18+
19+
install:
20+
- npm install
21+
22+
script:
23+
- npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox

src/karma.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module.exports = function (config) {
2121
fixWebpackSourcePaths: true
2222
},
2323
reporters: ['progress', 'kjhtml'],
24+
customLaunchers: {
25+
ChromeHeadlessNoSandbox: {
26+
base: 'ChromeHeadless',
27+
flags: ['--no-sandbox']
28+
}
29+
},
2430
port: 9876,
2531
colors: true,
2632
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)