diff --git a/.travis.yml b/.travis.yml index 85c1de6..f928bdf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,7 @@ install: - npm install after_script: - gulp coveralls +env: + global: + - SAUCE_USERNAME=maraoz + - SAUCE_ACCESS_KEY=30055bf8-2def-4e6a-8edd-4adb9fd1de66 diff --git a/.zuul.yml b/.zuul.yml new file mode 100644 index 0000000..c56d3e2 --- /dev/null +++ b/.zuul.yml @@ -0,0 +1,12 @@ +ui: mocha-bdd +browsers: + - name: chrome + version: 30..latest + - name: firefox + version: 30..latest + - name: ie + version: latest + - name: safari + version: latest +browserify: + - transform: brfs diff --git a/README.md b/README.md index 3cbd2b9..9554abf 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Bitcore [![Build Status](https://img.shields.io/travis/bitpay/bitcore.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/bitcore) [![Coverage Status](https://img.shields.io/coveralls/bitpay/bitcore.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitcore) +[![Sauce Test Status](https://saucelabs.com/browser-matrix/maraoz.svg)](https://saucelabs.com/u/maraoz) + A pure and powerful JavaScript Bitcoin library. ## Principles diff --git a/package.json b/package.json index ca724e5..33febb8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "index.js", "scripts": { "lint": "gulp lint", - "test": "gulp test", + "test": "gulp test && ./node_modules/zuul/bin/zuul -- test/*.js", "coverage": "gulp coverage", "build": "gulp", "postinstall": "node ./lib/errors/build.js" @@ -118,7 +118,8 @@ "plato": "^1.3.0", "run-sequence": "^1.0.2", "sinon": "^1.12.2", - "through2": "=0.6.3" + "through2": "=0.6.3", + "zuul": "1.16.3" }, "license": "MIT" } diff --git a/test/transaction/sighash.js b/test/transaction/sighash.js index e2b9c88..9ee89c8 100644 --- a/test/transaction/sighash.js +++ b/test/transaction/sighash.js @@ -2,6 +2,8 @@ var buffer = require('buffer'); +var chai = require('chai'); +var should = chai.should(); var Script = require('../../lib/script'); var Transaction = require('../../lib/transaction'); var sighash = require('../../lib/transaction/sighash');