/** * IMPORTANT: A copy of this function exists in `v-next/hardhat-node-test-reporter/src/ci.ts`. * If you change this function, you must also change the copy. */ /** * Checks whether the current process is running in a CI environment. * * @returns True if the current process is running in a CI environment. */ export function isCi() { const env = process.env; return (env.GITHUB_ACTIONS !== undefined || // GitHub Actions env.NOW !== undefined || // Vercel Now env.DEPLOYMENT_ID !== undefined || // Vercel Now env.CODEBUILD_BUILD_NUMBER !== undefined || // AWS CodeBuild env.CI !== undefined || // Travis CI, CircleCI, Cirrus CI, GitLab CI, Appveyor, CodeShip, dsari env.CONTINUOUS_INTEGRATION !== undefined || // Travis CI, Cirrus CI env.BUILD_NUMBER !== undefined || // Jenkins, TeamCity env.RUN_ID !== undefined // TaskCluster, dsari ); } //# sourceMappingURL=ci.js.map