{"name":"ci-job-number","version":"1.2.2","description":"Return CI job number to run huge tests only on first job","keywords":["CI","Travis","AppVeyor","Circle","Semaphore","job"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ai/ci-job-number.git"},"bugs":{"url":"https://github.com/ai/ci-job-number/issues"},"homepage":"https://github.com/ai/ci-job-number#readme","_id":"ci-job-number@1.2.2","_nodeVersion":"13.13.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CLOGsVDrVamzv8sXJGaILUVI6dsuAkouJP/n6t+OxLPeeA4DDby7zn9SB6EUpa1H7oIKoE+rMmkW80zYsFfUjA==","shasum":"f4e5918fcaeeda95b604f214be7d7d4a961fe0c0","tarball":"http://registry-npm.ywwl.com/ci-job-number/download/ci-job-number-1.2.2.tgz","fileCount":5,"unpackedSize":4351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemkFfCRA9TVsSAnZWagAAqkMP/3yxqemKm1BKAe+/cFE7\nAGTWmcRe0HTuMfPawth2ynZ8Knfyzao/3EAqIWNPdSIod+y+OyKWZGKAmgFr\nopwVVF63U/8RKJL0d7YkNsY2+BZLz+7Kkxm1llxZ4PnG6gS8noSRC6zSOeiU\nkvhwHFy0LU4KgTW/+bQ7s2EEb92ZE9iJj9+mRhmTC7gbDhrNCT0NGKOZJaEq\n1ZrDS0D1YWCoJUZaS7RqnRYRmVvbrLE7dbNsUjsuxHOsopl6pRuYiGgl0cBV\nj01pkjFfGAjyyzdRJux9409+KN7B5sSLgjEfLaaQKKr+Y+SgeXU1fm8kE9W6\nEm+GB6InwzJRMM8b3LGhzwGAm3f/JaQ64FJrMK/PAgLlhUS48qXAZTvXeFUv\nVB4ImGG2BmUVPTnA8yVtyRDSDJ9zDJX1s/3bz4SnAtixELN/rEoN8WAcHulj\nz/6ZNWSv3ewCibY5RRGUVV9IfHHpxBjH0+c6+6lKqax6Gx+jzRYpD0Ht+/6Z\nX+jaFwfqn+bK7o1WW2wuCjfEGeZLqc28M4rHFTMG3fQsn9CBlC6Y3GZV26yB\nJGJJyB03N60aOIvcZOml1h9LoWmCfWhn0xaEBg0jvc9sopAMB+lC2OyhZDuz\nKRqouY7E+5PHcbxJis9+3CuK7lY+XA1eM5PQYTZ+7kecHzJnT23AlBbWKNBh\nMuFz\r\n=rz/c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcq3mU4hiWL7DV/7Rlviq2xHwS0kEKsesuQxnejTIogAIgNnueH/Qsw5eSC0A0SdN9FDZJLHMGGGjGaj+n/74XstI="}],"size":2255,"noattachment":false,"key":"/ci-job-number/-/ci-job-number-1.2.2.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ci-job-number_1.2.2_1587167582941_0.8393013963426827"},"_hasShrinkwrap":false,"readme":"# CI Job Number\n\nReturn CI job number to run huge tests only on first job.\n\nOften we test different Node.js versions on Travis CI.\nBut Node.js version doesn’t affect on many tests. For example, using\nexternal API for docs spelling check.\n\nSince Travis CI is a free common resource, we should be responsible.\nSo we can run big tasks only on first Node.js version.\n\n```js\nconst ciJobNumber = require('ci-job-number')\n\nif (ciJobNumber() === 1) {\n  runSpellingCheck()\n} else {\n  console.warn('To speed up CI spelling check runs only in first job')\n}\n```\n\n<a href=\"https://evilmartians.com/?utm_source=ci-job-number\">\n  <img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n\n## CI Support\n\n* AppVeyor\n* CircleCI\n* GitLab CI\n* Semaphore\n* Travis CI\n\n\n## Who Use It\n\n* [`check-dts`](https://github.com/ai/check-dts)\n* [`eslint-ci`](https://github.com/JLHwung/eslint-ci)\n* [`jest-ci`](https://github.com/ai/jest-ci)\n* [`size-limit`](https://github.com/ai/size-limit)\n* [`spech`](https://github.com/megahertz/spech)\n* [`yaspeller-ci`](https://github.com/ai/yaspeller-ci)\n\n\n## Override Default Behaviour\n\n`CI_JOB_NUMBER` environment variable will override CI job number.\nIt is the best way to change default behaviour and run task on all CI jobs:\n\n```yaml\n  - name: Build and test\n    run: yarn test\n    env:\n      CI_JOB_NUMBER: 1\n```\n","publish_time":1587167583103,"_cnpm_publish_time":1587167583103,"dist-tags":{"latest":"1.2.2"}}