File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 global :
77 - secure : " eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8="
88 - secure : " Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
9- - secure : " N7NyiiwdsVsKLomdkdeb1lUdSiN7+luks0V4Sh+foJp1RnBqM54B+0pZNiwotMuhTuwv0kjURCooKiyV3eaTleRthutGL9Gt8YiCaCq+biZaZXZnk0E3AQqg/ZzQLeZyreQpcMGsbCnwtywtjvTYB6aJA+ZFzEhq5LRF8tsDn2Y ="
9+ - secure : " YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4 ="
1010before_script :
1111- npm install -g grunt-cli
1212- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
Original file line number Diff line number Diff line change 146146 compareResults ( oldResults , results [ browser ] , browser ) ;
147147 } catch ( e ) { }
148148
149- console . log ( colors . violet , "Writing" , browser + ".json" ) ;
150149 var date = new Date ( ) ;
151150 var result = JSON . stringify ( {
152151 browser : browser ,
153152 results : results [ browser ] ,
154153 timestamp : date . toISOString ( )
155154 } ) ;
156155
157- if ( process . env . MONGOLAB_URL ) {
156+ if ( process . env . MONGOLAB_APIKEY ) {
158157 var options = {
159158 host : "api.mongolab.com" ,
160159 port : 443 ,
161- path : process . env . MONGOLAB_URL ,
160+ path : "/api/1/databases/html2canvas/collections?" + process . env . MONGOLAB_APIKEY ,
162161 method : 'POST' ,
163162 headers : {
164163 'Content-Type' : 'application/json' ,
171170 console . log ( colors . green , "Results sent for" , browser ) ;
172171 } ) ;
173172
173+ console . log ( result ) ;
174174 request . write ( result ) ;
175175 request . end ( ) ;
176176 }
177177
178+ console . log ( colors . violet , "Writing" , browser + ".json" ) ;
178179 fs . writeFile ( filename , result ) ;
179180 } ) ;
180181 }
You can’t perform that action at this time.
0 commit comments