@@ -48,15 +48,19 @@ fs.removeAsync(config.screenshotRoot)
4848. then ( function ( branchSha ) {
4949 branchInfo = branchSha ;
5050
51- console . log ( 'Currently at' , branchInfo . sha ) ;
51+ console . log ( 'Currently at' , branchInfo . branch , branchInfo . sha ) ;
5252
5353 if ( branchInfo . branch !== 'master' ) {
5454 return gitInfo . getCommonAncestor ( branchInfo . sha , 'master' )
5555 . then ( function ( ancestor ) {
56+ console . log ( 'diffing against' , ancestor ) ;
5657 return startBuild ( {
5758 head : branchInfo . sha ,
5859 base : ancestor ,
5960 numBrowsers : 1
61+ } )
62+ . then ( function ( build ) {
63+ console . log ( 'Build started' , build . build ) ;
6064 } ) ;
6165 } ) ;
6266 }
@@ -75,6 +79,7 @@ fs.removeAsync(config.screenshotRoot)
7579 console . error ( e ) ;
7680} ) ;
7781
82+
7883return ;
7984
8085function upload ( options ) {
@@ -95,7 +100,7 @@ function upload(options) {
95100
96101 var r = request . post ( args , function ( error , response , body ) {
97102 if ( error || response . statusCode !== 200 ) {
98- reject ( error || new Error ( body ) ) ;
103+ reject ( error || body ) ;
99104 return ;
100105 }
101106
@@ -129,7 +134,7 @@ function startBuild(options) {
129134
130135 request ( options , function ( error , response , body ) {
131136 if ( error || response . statusCode !== 200 ) {
132- reject ( error || new Error ( body ) ) ;
137+ reject ( error || body ) ;
133138 return ;
134139 }
135140
0 commit comments