encrypt api key only

This commit is contained in:
Niklas von Hertzen 2013-05-29 20:52:27 +03:00
parent 403908c7da
commit 7842768707
2 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ env:
global:
- secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8="
- secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk="
- secure: "N7NyiiwdsVsKLomdkdeb1lUdSiN7+luks0V4Sh+foJp1RnBqM54B+0pZNiwotMuhTuwv0kjURCooKiyV3eaTleRthutGL9Gt8YiCaCq+biZaZXZnk0E3AQqg/ZzQLeZyreQpcMGsbCnwtywtjvTYB6aJA+ZFzEhq5LRF8tsDn2Y="
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
before_script:
- npm install -g grunt-cli
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash

View File

@ -146,7 +146,6 @@
compareResults(oldResults, results[browser], browser);
} catch(e) {}
console.log(colors.violet, "Writing", browser + ".json");
var date = new Date();
var result = JSON.stringify({
browser: browser,
@ -154,11 +153,11 @@
timestamp: date.toISOString()
});
if (process.env.MONGOLAB_URL) {
if (process.env.MONGOLAB_APIKEY) {
var options = {
host: "api.mongolab.com",
port: 443,
path: process.env.MONGOLAB_URL,
path: "/api/1/databases/html2canvas/collections?" + process.env.MONGOLAB_APIKEY,
method: 'POST',
headers: {
'Content-Type': 'application/json',
@ -171,10 +170,12 @@
console.log(colors.green, "Results sent for", browser);
});
console.log(result);
request.write(result);
request.end();
}
console.log(colors.violet, "Writing", browser + ".json");
fs.writeFile(filename, result);
});
}