From 26ee1adcb7b680e0eefd9d2087d2bdd304f783e9 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Tue, 27 Jan 2015 12:33:53 -0500 Subject: [PATCH] Tests: Make unit and integration tests use the same build number --- Gruntfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b50292e..d0afe5c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -67,10 +67,12 @@ module.exports = function (grunt) { testName: title, browsers: _.values(integration_browsers), tunnelArgs: ['-v', '--doctor'], + build: process.env.TRAVIS_BUILD_NUMBER || 0, concurrency: 3, // how many browsers to be run in parallel sauceConfig: { 'record-video': false, 'video-upload-on-pass': false, + build: process.env.TRAVIS_BUILD_NUMBER || 0, } } } @@ -83,7 +85,7 @@ module.exports = function (grunt) { 'http://127.0.0.1:'+port+'/test/index.html' ], browsers: _.values(unit_browsers), - build: process.env.TRAVIS_JOB_ID, + build: process.env.TRAVIS_BUILD_NUMBER || 0, pollInterval: 2000, // timeout maxRetries: 1, maxPollRetries: 1, @@ -94,7 +96,7 @@ module.exports = function (grunt) { 'record-video': false, tags: [slug, 'unit'], 'video-upload-on-pass': false, - build: process.env.TRAVIS_JOB_ID || 0, + build: process.env.TRAVIS_BUILD_NUMBER || 0, } } }