Skip BIP39 tests on Travis

This commit is contained in:
Yemel Jardi 2014-08-12 11:21:59 -03:00
parent ea22f1361f
commit b361bfe1d0
3 changed files with 6414 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,8 @@ var bitcore = bitcore || require('../bitcore');
var BIP39 = bitcore.BIP39;
var BIP39WordlistEn = bitcore.BIP39WordlistEn;
var ON_TRAVIS = typeof(process) != 'undefined' && (process.env.TRAVIS || process.env.CI);
describe('BIP39', function() {
// From python reference code, formatting unchanged
var bip39_vectors = {
@ -147,8 +149,7 @@ describe('BIP39', function() {
//do not run these slow tests on TRAVIS which often fails
var vectors = bip39_vectors['english'];
var process = process || null;
if (!process || (!process.env.TRAVIS && !process.env.CI)) {
if (!ON_TRAVIS) {
for (var v = 0 ; v < vectors.length ; v++) {
(function(v){
it('should pass test vector ' + v, function() {