Disable screenshot storing

This commit is contained in:
Niklas von Hertzen 2013-09-07 21:10:06 +03:00
parent 38fad5ac17
commit 14ff672c6e
2 changed files with 5 additions and 4 deletions

View File

@ -7,8 +7,6 @@ env:
- secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8=" - secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8="
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk=" - secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4=" - secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
- secure: "hdNNV/BnezrGn5Qp/WDCni6lUYOMjfwuowDfbkP1ynFU3T66OQkF99vqjLl25+S1WUAj1pybwOoXHdz0bjzgOjeBuFb3ylKmlh8XIpgyl4elI3DKjUHdm+Eu1YelQIqOhYvocWRUcJ659xkv3mh207E4HteGgcD2u0SKQ6YJl6k="
before_script: before_script:
- openssl aes-256-cbc -pass env:SERVICE_SECRET -in tests/certificate.pem.enc -d -a -out tests/certificate.pem
- npm install -g grunt-cli - npm install -g grunt-cli
- curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash - curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash

View File

@ -267,7 +267,10 @@
}); });
}); });
if (fs.existsSync('tests/certificate.pem')) {
Bacon.combineWith(permissionRequest, drive, auth, Bacon.combineWith(uploadRequest, drive, auth, resultStream.doAction(mapResults).flatMap(createImages)).flatMap(executeRequest)).flatMap(executeRequestOriginal).onValue(uploadImages); Bacon.combineWith(permissionRequest, drive, auth, Bacon.combineWith(uploadRequest, drive, auth, resultStream.doAction(mapResults).flatMap(createImages)).flatMap(executeRequest)).flatMap(executeRequestOriginal).onValue(uploadImages);
}
resultStream.onEnd(callback); resultStream.onEnd(callback);
}); });
}); });
@ -352,7 +355,7 @@
"exp": ~~(new Date().getTime() / 1000) + (30 * 60), "exp": ~~(new Date().getTime() / 1000) + (30 * 60),
"iat": ~~(new Date().getTime() / 1000 - 60) "iat": ~~(new Date().getTime() / 1000 - 60)
}, },
key = require('fs').readFileSync('tests/certificate.pem', 'utf8'), key = fs.readFileSync('tests/certificate.pem', 'utf8'),
transporterTokenRequest = { transporterTokenRequest = {
method: 'POST', method: 'POST',
uri: 'https://accounts.google.com/o/oauth2/token', uri: 'https://accounts.google.com/o/oauth2/token',