add travis build

This commit is contained in:
Yanzhen Yu
2018-11-01 13:36:55 +08:00
parent 25cd87ddf7
commit 86ad633080
3 changed files with 41 additions and 27 deletions

10
.travis.yml Normal file
View File

@@ -0,0 +1,10 @@
language: node_js
node_js:
- 10
install:
- npm install
script:
- xvfb-run --server-args="-screen 0 1920x1080x24" npm test

File diff suppressed because one or more lines are too long

View File

@@ -65,8 +65,12 @@ describe('record integration tests', () => {
before(async () => {
this.browser = await puppeteer.launch({
// headless: false,
executablePath: '/home/yanzhen/Desktop/chrome-linux/chrome',
defaultViewport: {
width: 1920,
height: 1080,
},
headless: false,
args: ['--no-sandbox'],
});
const bundle = await rollup.rollup({
@@ -192,5 +196,5 @@ describe('record integration tests', () => {
'select2',
);
assert(result.pass, result.pass ? '' : result.report());
}).timeout(5000);
}).timeout(10000);
});