[Pkg-javascript-commits] [sockjs-client] 178/350: Fix test verbosity

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit 1b6f50511f6937959860ea5d7ea053810c80b97a
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Sun Oct 19 22:07:33 2014 -0400

    Fix test verbosity
---
 .travis.yml      | 4 +++-
 tests/browser.js | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index caca83f..23ad97e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,10 @@
 language: node_js
 node_js:
   - '0.10'
+git:
+  depth: 1
 script:
-  - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && npm test || false'
+  - '[ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && npm test || false'
 env:
   global:
   - secure: L36j3mbU1U2FiOhxYZrTZ7apVnb56gE+QFixsYyDpCRBrVW0q8WR9LTMJx+aPNdlzhRS5FT4gfInujPTnZeb+EvqEoYwtT+CeNG15XtGkfJDkfBFjBa4IZpJAjIwJB+0kKkZr9R7lQEEgy7H9FvLHY2N2WgdzuG8WZwiVRnkwVw=
diff --git a/tests/browser.js b/tests/browser.js
index 0aa8e73..f02931c 100644
--- a/tests/browser.js
+++ b/tests/browser.js
@@ -2,7 +2,9 @@
 
 require('../lib/shims');
 
-require('debug').enable('sockjs-client:*');
+if (!process.env.TRAVIS_JOB_NUMBER) {
+  require('debug').enable('sockjs-client:*');
+}
 
 // prevent global leak warnings on this
 global._jp = {};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list