Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 462 Bytes

isTravisCI.md

File metadata and controls

16 lines (12 loc) · 462 Bytes
title tags
isTravisCI
node,intermediate

Checks if the current environment is Travis CI.

  • Checks if the current environment has the TRAVIS and CI environment variables (reference).
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
isTravisCI(); // true (if code is running on Travis CI)