From 9d4056449480b19fb312e9018666b8447f4e1b97 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 7 Jan 2015 19:45:50 -0300 Subject: [PATCH 1/5] adding zuul --- .travis.yml | 4 ++++ .zuul.yml | 10 ++++++++++ package.json | 5 +++-- test/transaction/sighash.js | 2 ++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .zuul.yml 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..15bb7a8 --- /dev/null +++ b/.zuul.yml @@ -0,0 +1,10 @@ +ui: mocha-bdd +browsers: + - name: chrome + version: latest + platform: Windows XP + - name: ie + version: latest + platform: Windows XP +browserify: + - transform: brfs 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'); From 185126323297876794e44d1b7a3205d1376fcb5b Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 8 Jan 2015 11:16:13 -0300 Subject: [PATCH 2/5] add platforms for zuul --- .zuul.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zuul.yml b/.zuul.yml index 15bb7a8..d89560c 100644 --- a/.zuul.yml +++ b/.zuul.yml @@ -1,10 +1,10 @@ ui: mocha-bdd browsers: - name: chrome - version: latest - platform: Windows XP + version: 27..latest - name: ie version: latest - platform: Windows XP + - name: iphone + version: 6.1 browserify: - transform: brfs From 27f8370186c6772b67660b72ef26bcd51f80f601 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 8 Jan 2015 12:13:30 -0300 Subject: [PATCH 3/5] set specific zuul platforms --- .zuul.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.zuul.yml b/.zuul.yml index d89560c..c56d3e2 100644 --- a/.zuul.yml +++ b/.zuul.yml @@ -1,10 +1,12 @@ ui: mocha-bdd browsers: - name: chrome - version: 27..latest + version: 30..latest + - name: firefox + version: 30..latest - name: ie version: latest - - name: iphone - version: 6.1 + - name: safari + version: latest browserify: - transform: brfs From 05c7f641c1e24aaa8451cd23a40273c17818a56b Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 8 Jan 2015 12:35:05 -0300 Subject: [PATCH 4/5] add saucelabs badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3cbd2b9..7aa5da0 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Bitcore [![NPM Package](https://img.shields.io/npm/v/bitcore.svg?style=flat-square)](https://www.npmjs.org/package/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. From a996b465fc6283f9cbbe363e4a07536e849ea6b4 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 8 Jan 2015 12:39:13 -0300 Subject: [PATCH 5/5] add saucelabs badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7aa5da0..9554abf 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Bitcore [![NPM Package](https://img.shields.io/npm/v/bitcore.svg?style=flat-square)](https://www.npmjs.org/package/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.