mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
encrypt api key only
This commit is contained in:
parent
403908c7da
commit
7842768707
@ -6,7 +6,7 @@ env:
|
|||||||
global:
|
global:
|
||||||
- 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: "N7NyiiwdsVsKLomdkdeb1lUdSiN7+luks0V4Sh+foJp1RnBqM54B+0pZNiwotMuhTuwv0kjURCooKiyV3eaTleRthutGL9Gt8YiCaCq+biZaZXZnk0E3AQqg/ZzQLeZyreQpcMGsbCnwtywtjvTYB6aJA+ZFzEhq5LRF8tsDn2Y="
|
- secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4="
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
||||||
|
@ -146,7 +146,6 @@
|
|||||||
compareResults(oldResults, results[browser], browser);
|
compareResults(oldResults, results[browser], browser);
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
console.log(colors.violet, "Writing", browser + ".json");
|
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
var result = JSON.stringify({
|
var result = JSON.stringify({
|
||||||
browser: browser,
|
browser: browser,
|
||||||
@ -154,11 +153,11 @@
|
|||||||
timestamp: date.toISOString()
|
timestamp: date.toISOString()
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.MONGOLAB_URL) {
|
if (process.env.MONGOLAB_APIKEY) {
|
||||||
var options = {
|
var options = {
|
||||||
host: "api.mongolab.com",
|
host: "api.mongolab.com",
|
||||||
port: 443,
|
port: 443,
|
||||||
path: process.env.MONGOLAB_URL,
|
path: "/api/1/databases/html2canvas/collections?" + process.env.MONGOLAB_APIKEY,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@ -171,10 +170,12 @@
|
|||||||
console.log(colors.green, "Results sent for", browser);
|
console.log(colors.green, "Results sent for", browser);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(result);
|
||||||
request.write(result);
|
request.write(result);
|
||||||
request.end();
|
request.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(colors.violet, "Writing", browser + ".json");
|
||||||
fs.writeFile(filename, result);
|
fs.writeFile(filename, result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user