sauce labs credentials are not available on travis so tests will always
fail. feross will run the tests manually before merging any PRs.
--- /dev/null
+#!/usr/bin/env node
+
+var cp = require('child_process')
+
+var runBrowserTests = !process.env.TRAVIS_PULL_REQUEST ||
+ process.env.TRAVIS_PULL_REQUEST === 'false'
+
+var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' })
+node.on('close', function (code) {
+ if (runBrowserTests) {
+ var browser = cp.spawn('npm', ['run', 'test-browser'], { stdio: 'inherit' })
+ browser.on('close', function (code) {
+ process.exit(code)
+ })
+ } else {
+ process.exit(code)
+ }
+})
"url": "git://github.com/feross/buffer.git"
},
"scripts": {
- "test": "npm run test-node && npm run test-browser",
+ "test": "node ./bin/test.js",
"test-browser": "zuul -- test/*.js",
"test-browser-local": "zuul --local -- test/*.js",
"test-node": "tape test/*.js && OBJECT_IMPL=true tape test/*.js",