13

There's a file called launch.sh in our Create React App, that is used to publish things to the CDN. One of the lines in there says export CI=true. I have no idea what "CI" means in this context, and what it does.

Alastair Maw
  • 5,373
  • 1
  • 38
  • 50
Physix
  • 171
  • 1
  • 1
  • 5
  • Neither do we. It sets an environment variable to "true". – Dave Newton Jun 19 '18 at 13:56
  • Without context you will never get an answer here. CI usually means Continuous Integration , and considering the tagging, I believe it should trigger a build/test from jenkins. Yet it could also mean "Can't Imagine" the numerous possibilities it can have. – Ilhicas Jun 19 '18 at 14:59

1 Answers1

17

Read the docs, as ever: https://facebook.github.io/create-react-app/docs/running-tests#continuous-integration

Continuous Integration

By default npm test runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called CI.

When creating a build of your application with npm run build linter warnings are not checked by default. Like npm test, you can force the build to perform a linter warning check by setting the environment variable CI. If any warnings are encountered then the build fails.

[...]

Alastair Maw
  • 5,373
  • 1
  • 38
  • 50