add travis build

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 729f8e8453
commit 7c04836709
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 () => { before(async () => {
this.browser = await puppeteer.launch({ this.browser = await puppeteer.launch({
// headless: false, defaultViewport: {
executablePath: '/home/yanzhen/Desktop/chrome-linux/chrome', width: 1920,
height: 1080,
},
headless: false,
args: ['--no-sandbox'],
}); });
const bundle = await rollup.rollup({ const bundle = await rollup.rollup({
@@ -192,5 +196,5 @@ describe('record integration tests', () => {
'select2', 'select2',
); );
assert(result.pass, result.pass ? '' : result.report()); assert(result.pass, result.pass ? '' : result.report());
}).timeout(5000); }).timeout(10000);
}); });