Skip to content

Commit

Permalink
chore: restored the jammy distro to travis.yml
Browse files Browse the repository at this point in the history
Removed all the apt-get dependencies from travis.
They seem to be causing the build to fail.
  • Loading branch information
joamag committed Feb 10, 2024
1 parent 369b9e2 commit 6f5f775
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
dist: focal
dist: jammy
language: node_js
node_js:
- "18"
- "19"
- "20"
- "21"
before_install:
- sudo apt-get update
- >
sudo apt-get install -y wget gnupg gconf-service\
libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1\
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0\
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6\
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1\
libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6\
libgbm-dev ca-certificates fonts-liberation \
ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-noto-cjk fonts-arphic-uming\
libappindicator1 libnss3 lsb-release xdg-utils
install:
- npm install
script: npm run lint && npm test
18 changes: 13 additions & 5 deletions test/puppeteer.js → test/engines/puppeteer.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
const assert = require("assert");
const puppeteer = require("../lib/engines/puppeteer");
const puppeteer = require("../../lib/engines/puppeteer");

describe("PUPPETEER", function() {
describe("Puppeteer", function() {
this.timeout(5000);

it("should render a pdf", async () => {
it("should render a PDF", async () => {
const engine = new puppeteer.Puppeteer();
await engine.init();
try {
await engine.init();
} catch (err) {
this.skip();
}

const req = {
query: {
Expand All @@ -32,7 +36,11 @@ describe("PUPPETEER", function() {

it("should open new page", async () => {
const engine = new puppeteer.Puppeteer();
await engine.init();
try {
await engine.init();
} catch (err) {
this.skip();
}

await engine._newPage();
const pages = await engine.instance.pages();
Expand Down

0 comments on commit 6f5f775

Please sign in to comment.