Try browser testing

This commit is contained in:
Emil Bay 2020-06-26 12:09:38 +02:00
parent aba9bafeee
commit f830975aa5
2 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,19 @@
language: node_js
node_js:
- lts/*
env:
global:
- MOZ_HEADLESS=1
services:
- xvfb
addons:
firefox: latest
chrome: stable
cache:
npm: false
script:
- npm test
- xvfb-run --auto-servernum npm run test-browser
- xvfb-run --auto-servernum npm run test-browser -- --browser chrome
- xvfb-run --auto-servernum npm run test-browser -- --browser firefox

View File

@ -13,7 +13,6 @@
"xsalsa20": "^1.0.0"
},
"devDependencies": {
"browser-run": "^7.0.2",
"browserify": "^16.5.1",
"sodium-test": "^0.9.0",
"standard": "^14.3.4",
@ -31,10 +30,9 @@
"crypto": "crypto"
},
"scripts": {
"browser": "browserify test.js | browser-run",
"browser-manual": "browserify test.js | tape-run",
"pretest": "standard",
"test": "node test.js"
"test": "node test.js",
"test-browser": "browserify test.js | tape-run"
},
"repository": {
"type": "git",