From ac6c5eb648171c03610174442476425b418f4993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 23 Mar 2018 10:01:59 +0100 Subject: [PATCH] ci: Test using tape-run --- .travis.yml | 6 ++++++ package.json | 24 +++++------------------- 2 files changed, 11 insertions(+), 19 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..987e4fc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "stable" +sudo: false +before_script: + - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start diff --git a/package.json b/package.json index 0c1ef94..51cf431 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "component-indexof": "0.0.3" }, "devDependencies": { - "tape": "~2.3.2" + "browserify": "^16.1.1", + "tape": "~2.3.2", + "tape-run": "^3.0.4" }, "author": { "name": "James Halliday", @@ -24,23 +26,7 @@ "url": "http://substack.net" }, "scripts": { - "test": "tap test/*.js" + "test": "browserify test/vm.js | tape-run" }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/6..latest", - "firefox/16..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } + "license": "MIT" }