add travis build
This commit is contained in:
10
.travis.yml
Normal file
10
.travis.yml
Normal 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
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user