@@ -60,21 +60,24 @@ module.exports = function(config) {
60
60
console . error ( 'CI mode enabled' ) ;
61
61
if ( env . TRAVIS ) {
62
62
console . error ( 'Travis-CI detected' ) ;
63
+ bundleDirpath = path . join ( baseBundleDirpath , process . env . TRAVIS_BUILD_ID ) ;
63
64
if ( env . SAUCE_USERNAME && env . SAUCE_ACCESS_KEY ) {
64
65
// correlate build/tunnel with Travis
65
66
sauceConfig = {
66
67
build : 'TRAVIS #' + env . TRAVIS_BUILD_NUMBER
67
68
+ ' (' + env . TRAVIS_BUILD_ID + ')' ,
68
69
tunnelIdentifier : env . TRAVIS_JOB_NUMBER
69
70
} ;
70
- console . error ( 'Configured SauceLabs' )
71
+ console . error ( 'Configured SauceLabs' ) ;
71
72
} else {
72
73
console . error ( 'No SauceLabs credentials present' ) ;
73
74
}
74
75
} else if ( env . APPVEYOR ) {
75
76
console . error ( 'AppVeyor detected' ) ;
77
+ bundleDirpath = path . join ( baseBundleDirpath , process . env . APPVEYOR_BUILD_ID ) ;
76
78
} else {
77
- console . error ( 'Local/unknown environment detected' )
79
+ console . error ( 'Local/unknown environment detected' ) ;
80
+ bundleDirpath = path . join ( baseBundleDirpath , 'local' ) ;
78
81
// don't need to run sauce from appveyor b/c travis does it.
79
82
if ( ! ( env . SAUCE_USERNAME || env . SAUCE_ACCESS_KEY ) ) {
80
83
console . error ( 'No SauceLabs credentials present' ) ;
@@ -85,6 +88,7 @@ module.exports = function(config) {
85
88
console . error ( 'Configured SauceLabs' ) ;
86
89
}
87
90
}
91
+ mkdirp . sync ( bundleDirpath ) ;
88
92
} else {
89
93
console . error ( 'CI mode disabled' ) ;
90
94
}
0 commit comments