Skip to content

Commit

Permalink
encrypt google map dev key
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouzekri committed Aug 11, 2017
1 parent 9726209 commit c0b4490
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ selenium-debug.log
*.ntvs*
*.njsproj
*.sln

# Add file manually on installation
config/dev.env.js
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
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

script:
- npm run lint
- npm run test

env:
global:
secure: uK7Xfbl7b26xVhG0asJn7PXpxaOW07HQqXEPg1DQlKPCJUVmWyRP1fJOIEgn38k25Z4nbfZWs9NgZSkMejobCGjR6k7OPMN+Cs43Dphq3Hlnu94U7SeH+tuZKMUnfjzHqbG2uGsrWF1JZ7jhYOpLdj2+NP60ZHSKIVM4tbixYtBrWADmmlmCES5Bqc4Rddn1n6JklJI21FETq7GNdHYv2ZDb+47ZuPFWIgaUZ7yhfpfqXGPedc5iBH3BoY4kZEioXgTx9Q/2iwGXjI15MbTLsgzJ/b0GOA8IjQ7oAM6CK3uNc1rnjYulIsJVYiyJeuHfDMDamCPRQ3l5G6sMGCNfudZXn4SHFJia6ghP2x13WyqKOQ6RQfljhVRHFMnUpZo9JXlGZkQsEl4HNrrnckZAUXi8PXroSGpiq7X9EjIM5t2RiQrvw2O7qwIgjvBEv4UKd4jCqjsynGAJQkVPVyApuwRZJPBAIdjcowdZxvOj+uPECzRUnfeGpFz3bCd1gu1mMwDjaMlzHw8WSjRPQIXS4q5tp6fnurSs67Lbjmli1qcI20XoQ4m9g0jW8oBkJx8TQgNXObTi8V71UtV9LY8IMfIh/l43FQwaYr1F49raWmO8M0dOP9Uwugtp4hEJnTigj+wh4nRWpPQPvC/pyBoq/xf14Z6ASLf1h9DhIuqLK5g=
3 changes: 2 additions & 1 deletion config/dev.env.js → config/dev.env.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
})

0 comments on commit c0b4490

Please sign in to comment.