1 /* 2 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 2. Redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the 11 * documentation and/or other materials provided with the distribution. 12 * 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 23 * THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26 var config = config || {}; 27 28 (function() { 29 30 config.kBuildNumberLimit = 20; 31 32 config.kPlatforms = { 33 'chromium' : { 34 label : 'Chromium', 35 buildConsoleURL: 'http://build.chromium.org/p/chromium.webkit', 36 layoutTestResultsURL: 'http://build.chromium.org/f/chromium/layout_test_results', 37 waterfallURL: 'http://build.chromium.org/p/chromium.webkit/waterfall', 38 builders: { 39 'WebKit XP': {version: 'xp'}, 40 'WebKit Win7': {version: 'win7'}, 41 'WebKit Win7 (dbg)(1)': {version: 'win7', debug: true}, 42 'WebKit Win7 (dbg)(2)': {version: 'win7', debug: true}, 43 'WebKit Linux': {version: 'lucid', is64bit: true}, 44 'WebKit Linux 32': {version: 'lucid'}, 45 'WebKit Linux (dbg)': {version: 'lucid', is64bit: true, debug: true}, 46 'WebKit Mac10.6': {version: 'snowleopard'}, 47 'WebKit Mac10.6 (dbg)': {version: 'snowleopard', debug: true}, 48 'WebKit Mac10.7': {version: 'lion'}, 49 'WebKit Mac10.7 (dbg)': {version: 'lion', debug: true}, 50 'WebKit Mac10.8': {version: 'mountainlion'}, 51 }, 52 resultsDirectoryNameFromBuilderName: function(builderName) { 53 return base.underscoredBuilderName(builderName); 54 }, 55 _builderApplies: function(builderName) { 56 // FIXME: Should garden-o-matic show these? 57 // WebKit Android and ASAN are red all the time. 58 // Remove this function entirely once they are better supported. 59 return builderName.indexOf('GPU') == -1 && 60 builderName.indexOf('ASAN') == -1 && 61 builderName.indexOf('WebKit (Content Shell) Android') == -1 && 62 builderName.indexOf('WebKit Android') == -1; 63 }, 64 }, 65 }; 66 67 config.currentPlatform = 'chromium'; 68 config.kBlinkSvnURL = 'svn://svn.chromium.org/blink/trunk'; 69 config.kBlinkRevisionURL = 'http://src.chromium.org/viewvc/blink'; 70 config.kSvnLogURL = 'http://build.chromium.org/cgi-bin/svn-log'; 71 config.kRietveldURL = "https://codereview.chromium.org"; 72 73 var kTenMinutesInMilliseconds = 10 * 60 * 1000; 74 config.kUpdateFrequency = kTenMinutesInMilliseconds; 75 config.kRelativeTimeUpdateFrequency = 1000 * 60; 76 77 config.currentBuilders = function() { 78 return config.kPlatforms[config.currentPlatform].builders; 79 }; 80 81 config.builderApplies = function(builderName) { 82 return config.kPlatforms[config.currentPlatform]._builderApplies(builderName); 83 }; 84 85 config.useLocalResults = Boolean(base.getURLParameter('useLocalResults')) || false; 86 87 })(); 88