My CI runner will only run a single line. I'm trying to run npm install prior 
to eslint. However, if I add npm install to the before_script section, then 
only npm install runs and the build reports success without ever actually 
running eslint. Are multiple commands not supported on a windows shell 
runner?

I also tried moving npm install into the lint job, with the same result. 
The only way I was able to get this to work is by putting both commands 
into one line as npm install&&eslint **/*.js

I have installed the gitlab multi-runner on a windows host. Here is my 
.gitlab-ci.yml


before_script:
  - npm install

stages:
  - test

cache:
  key: "$CI_BUILD_REF_NAME"
  paths:
    - node_modules/

lint:
  stage: test
  tags:
    - javascript
  script:
    - eslint **/*.js

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/a7c66699-59de-46a0-a482-88b0d5026df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to