From c0b4490d675446fea86bf4f9c6c7f7aa87eada92 Mon Sep 17 00:00:00 2001 From: Jonathan Bouzekri Date: Fri, 11 Aug 2017 11:13:03 +0200 Subject: [PATCH] encrypt google map dev key --- .gitignore | 3 +++ .travis.yml | 19 ++++++++++++------- config/{dev.env.js => dev.env.js.template} | 3 ++- 3 files changed, 17 insertions(+), 8 deletions(-) rename config/{dev.env.js => dev.env.js.template} (65%) diff --git a/.gitignore b/.gitignore index 4105b14..77cd71d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ selenium-debug.log *.ntvs* *.njsproj *.sln + +# Add file manually on installation +config/dev.env.js diff --git a/.travis.yml b/.travis.yml index b925966..353e6f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,19 @@ language: node_js node_js: - - "6" - - "7" - - "node" +- '6' +- '7' +- node cache: directories: - - "node_modules" + - node_modules before_script: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" - - sleep 3 # give xvfb some time to start + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + - sleep 3 + - cat config/dev.env.js.template | sed -e "s/GOOGLE_MAP_KEY/$GOOGLE_MAP_KEY/g" > config/dev.env.js install: - npm install @@ -20,3 +21,7 @@ install: script: - npm run lint - npm run test + +env: + global: + secure: uK7Xfbl7b26xVhG0asJn7PXpxaOW07HQqXEPg1DQlKPCJUVmWyRP1fJOIEgn38k25Z4nbfZWs9NgZSkMejobCGjR6k7OPMN+Cs43Dphq3Hlnu94U7SeH+tuZKMUnfjzHqbG2uGsrWF1JZ7jhYOpLdj2+NP60ZHSKIVM4tbixYtBrWADmmlmCES5Bqc4Rddn1n6JklJI21FETq7GNdHYv2ZDb+47ZuPFWIgaUZ7yhfpfqXGPedc5iBH3BoY4kZEioXgTx9Q/2iwGXjI15MbTLsgzJ/b0GOA8IjQ7oAM6CK3uNc1rnjYulIsJVYiyJeuHfDMDamCPRQ3l5G6sMGCNfudZXn4SHFJia6ghP2x13WyqKOQ6RQfljhVRHFMnUpZo9JXlGZkQsEl4HNrrnckZAUXi8PXroSGpiq7X9EjIM5t2RiQrvw2O7qwIgjvBEv4UKd4jCqjsynGAJQkVPVyApuwRZJPBAIdjcowdZxvOj+uPECzRUnfeGpFz3bCd1gu1mMwDjaMlzHw8WSjRPQIXS4q5tp6fnurSs67Lbjmli1qcI20XoQ4m9g0jW8oBkJx8TQgNXObTi8V71UtV9LY8IMfIh/l43FQwaYr1F49raWmO8M0dOP9Uwugtp4hEJnTigj+wh4nRWpPQPvC/pyBoq/xf14Z6ASLf1h9DhIuqLK5g= diff --git a/config/dev.env.js b/config/dev.env.js.template similarity index 65% rename from config/dev.env.js rename to config/dev.env.js.template index 17079cd..1607e4b 100644 --- a/config/dev.env.js +++ b/config/dev.env.js.template @@ -3,5 +3,6 @@ var prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', - API_URL: '"http://localhost:8088"' + API_URL: '"http://localhost:8088"', + GMAP_API_KEY: '"GOOGLE_MAP_KEY"' })