Treating warnings as errors because process.env.CI = true


I’m making my first pipeline, in fact it is already ready, but I’m having a small problem, there are some warnings in the product code, and when these warnings exist, the pipeline is interrupted with the error below (title of the post)

"Treating warnings as errors because process.env.CI = true.

Most CI servers set it automatically.

Failed to compile."

I searched the documentation and I did not find any information about this configuration, although I find it safer for them to fix warnings, I wanted to know how to disable this configuration, is this possible?

Thanks in advance!

As noted in your output, like most CI servers, Drone automatically sets CI=true. If this is undesirable you can unset the parameter like this:

- name: test
  image: node
  - unset CI
  - npm install
  - npm run tests

Thank you very much, it worked perfectly