diff --git a/.travis.yml b/.travis.yml index 8254087f8b..5501d927c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,11 +13,11 @@ git: matrix: include: - node_js: '0.10' - env: MODE = compat + env: MODE=compat - node_js: '0.12' - env: MODE = compat + env: MODE=compat - node_js: '4' - env: MODE = compat + env: MODE=compat #matrix: #fast_finish: true #allow_failures: diff --git a/gulpfile.js b/gulpfile.js index 67b5de48bc..ae03a93dc4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,10 +23,12 @@ gulp.task('clean', function () { }) gulp.task('test', function(){ + console.log(process.env.MODE); + console.log(process.env.MODE === 'compat'); return gulp.src('test/socket.io.js', {read: false}) .pipe(mocha({ slow: 200, - reporter: 'dot', + reporter: 'spec', bail: true })) .once('error', function () { @@ -38,7 +40,6 @@ gulp.task('test', function(){ }); gulp.task('set-compat-node-env', function() { - console.log('testing compat package'); process.env.MODE = 'compat'; }); diff --git a/test/socket.io.js b/test/socket.io.js index d751bdb79a..e6cd1c7623 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -1,6 +1,6 @@ var mode = process.env.MODE; var http = require('http').Server; -var io = require('..'); +var io = require('../lib'); if(mode === 'compat') { console.log('testing compat version'); io = require('../dist');