.gitlab-ci.yml
image: docker.x.x/vertica
cache:
    paths:
        - node_modules/
job:
    script:
        - shopt -s expand_aliases
        - alias vsql="/opt/vertica/bin/vsql"
        - source /nvm
        - nvm install 8.9
        - nvm use
        - npm install
        - npm test
Error in my node.js test:
  1) Setup
       Should create test table for tests:
      AssertionError [ERR_ASSERTION]: '/bin/sh: vsql: command not found\n' === ''
      + expected - actual
      -/bin/sh: vsql: command not found
      at Context.<anonymous> (test/index.test.js:86:20)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
I looked at this answer: https://stackoverflow.com/a/37309112/1137669 but have no idea how to implement this in the gitlab-ci.yml file so that it can be accessed by the node.js script.
 
    