diff --git a/.gitignore b/.gitignore index cd47245..64fe991 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ image.jpg /.project /.settings/ +/tests/certificate.pem node_modules/ .envrc server.js diff --git a/.travis.yml b/.travis.yml index e6cf713..5f2457c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,11 @@ node_js: - '0.10' env: global: - - secure: "eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8=" - - secure: "Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk=" - - secure: "YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4=" + - secure: eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8= + - secure: Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk= + - secure: YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4= + - secure: cLQsK4kjh012RNkGcWXTQb+R0rEdRElfv2Xp05YWOsE2hr1dy9NwmgyRxCLBbVETpsOgceiuXTvDenq+M9kKNXfGn4w8iBXPfa6jb5G296tkMIu7tdK8l+MxmK1DQKLbhnWNxRDC0oqm7fph+HrFSZq2NhuvDwWpJMXlK/yOwuk= before_script: +- openssl aes-256-cbc -k "$SERVICE_SECRET" -in tests/certificate.pem.enc -d -a -out tests/certificate.pem - npm install -g grunt-cli - curl https://gist.github.com/niklasvh/6150144/raw/sauce_connect_setup.sh | bash diff --git a/tests/certificate.pem.enc b/tests/certificate.pem.enc new file mode 100644 index 0000000..e9feaf0 --- /dev/null +++ b/tests/certificate.pem.enc @@ -0,0 +1,43 @@ +U2FsdGVkX1/27BIOt77CV1bJcRwGZFQ55Wn/i10f6OY/h7k+TRxp/a7LEc0fyHZG +7nV31mX0EQT1GeZ+cUu5IaiR8mi9vYTRnrk0HpdJLq6lU8CuMla3xXbDjjXNEwcT +qlNawC9mgQL/5By5vJWGVPDptzlhtWnYPWRlIi4axZ2BpAb6nzPtgYaVyJSFWUYd +WtN0KyiSrzNBNA+7afVw/lCYZ9kdJ4qP22pe5UHzG3S9BnJR+yYOWzDPOqHeaRlV +y/HQ9iuMgaS41RFfHZP4JRe9PCglQiMwbbrB8eZyWAs5TmqTx2S7mbqjtJKvxEwA +8c4GCtiQPgvG3BimJjzLXcOsnmM0rrmEylciKZfxrJ4UYhvjxsJQgru2qOnigmER +QHy25byP+TBlHbjIbuY1WpZv+L78MrKUSUDjn2NVsVaEMk925f4JT6x5lKxvQJEo +nslhDHHsx0ZfpvsooPvvO5vgPtWn3eEYmwPXK0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LhbSGh1g41cHN7WGUrvYBiniYYHzL+Yu9 +i0nFqAe/Y/+htsqqy/JMNOVcb1rq3AU3VsfW9QOU7eadtN4vABS4BXGwFdP6hTne +bACieHy5z0Fc/0J593PAMal/5fEswbcKRsj6IPGUk/qsNNrqgNqtVgxNcqWTcjay diff --git a/tests/selenium.js b/tests/selenium.js index bbff559..e6a7d10 100644 --- a/tests/selenium.js +++ b/tests/selenium.js @@ -352,7 +352,7 @@ "exp": ~~(new Date().getTime() / 1000) + (30 * 60), "iat": ~~(new Date().getTime() / 1000 - 60) }, - key = new Buffer(process.env.SERVICE_ACCOUNT, 'base64').toString('ascii'), + key = require('fs').readFileSync('tests/certificate.pem', 'utf8'), transporterTokenRequest = { method: 'POST', uri: 'https://accounts.google.com/o/oauth2/token',