changed the gitlab ci to handle npm test

3 jobs for master in 10 seconds (queued for 2 seconds)
Name Stage Failure
failed
build Build
  if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at process.emit (events.js:159:13)
at process._fatalException (bootstrap_node.js:382:26)
Cleaning up file based variables
ERROR: Job failed: exit code 7