Skip to content

Commit 14ff672

Browse files
committed
Disable screenshot storing
1 parent 38fad5a commit 14ff672

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ env:
77
- secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8="
88
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
99
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
10-
- secure: "hdNNV/BnezrGn5Qp/WDCni6lUYOMjfwuowDfbkP1ynFU3T66OQkF99vqjLl25+S1WUAj1pybwOoXHdz0bjzgOjeBuFb3ylKmlh8XIpgyl4elI3DKjUHdm+Eu1YelQIqOhYvocWRUcJ659xkv3mh207E4HteGgcD2u0SKQ6YJl6k="
1110
before_script:
12-
- openssl aes-256-cbc -pass env:SERVICE_SECRET -in tests/certificate.pem.enc -d -a -out tests/certificate.pem
1311
- npm install -g grunt-cli
1412
- curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash

tests/selenium.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@
267267
});
268268
});
269269

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

0 commit comments

Comments
 (0)