From fac44d52bff146374a2b5788206ba86ddcd9ffed Mon Sep 17 00:00:00 2001 From: dark64 Date: Tue, 24 Jan 2023 18:43:14 +0100 Subject: [PATCH] install headless chrome --- .circleci/config.yml | 8 ++++++++ zokrates_js/package.json | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 98c18e57..9da9f1d4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,6 +124,14 @@ jobs: - run: name: Run clippy command: cargo clippy -- -D warnings + - run: + name: Install headless chrome dependencies + command: | + sudo apt-get install -yq \ + ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 \ + libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 \ + 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 lsb-release wget xdg-utils - run: name: Run tests no_output_timeout: "30m" diff --git a/zokrates_js/package.json b/zokrates_js/package.json index 0841556d..27967df0 100644 --- a/zokrates_js/package.json +++ b/zokrates_js/package.json @@ -31,11 +31,12 @@ "scripts": { "wasm-pack": "wasm-pack build --out-name index --target web", "prebuild": "npm install", - "build": "npm run wasm-pack -- --release && node patch.js && npm run bundle", - "build:dev": "npm run wasm-pack -- --dev && node patch.js && npm run bundle", + "build": "npm run wasm-pack -- --release && npm run patch && npm run bundle", + "build:dev": "npm run wasm-pack -- --dev && npm run patch && npm run bundle", "pretest": "npm run build:dev", "test": "npm run run-tests", "run-tests": "mocha --timeout 100000 --recursive tests", + "patch": "node patch.js", "bundle": "browserify ./index.js --standalone zokrates -t [ babelify --presets [ @babel/preset-env ] ] | uglifyjs --compress --mangle > umd.min.js" }, "devDependencies": {