circle.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. version: 2.1
  2. workflows:
  3. version: 2.1
  4. main:
  5. jobs:
  6. - lint
  7. - test-v4
  8. - test-v5
  9. - test-v6
  10. - release:
  11. requires:
  12. - lint
  13. - test-v4
  14. - test-v5
  15. - test-v6
  16. filters:
  17. branches:
  18. only:
  19. - master
  20. jobs:
  21. lint:
  22. docker:
  23. - image: circleci/node:8
  24. steps:
  25. - checkout
  26. - run:
  27. name: Install dependencies
  28. command: npm install
  29. - run:
  30. name: Lint code
  31. command: npm run lint
  32. test-v4:
  33. docker:
  34. - image: circleci/node:8
  35. steps:
  36. - checkout
  37. - run:
  38. name: Install dependencies
  39. command: npm install
  40. - run:
  41. name: Test ESLint 4
  42. command: npm run test:v4
  43. test-v5:
  44. docker:
  45. - image: circleci/node:8
  46. steps:
  47. - checkout
  48. - run:
  49. name: Install dependencies
  50. command: npm install
  51. - run:
  52. name: Test ESLint 5
  53. command: npm run test
  54. test-v6:
  55. docker:
  56. - image: circleci/node:8
  57. steps:
  58. - checkout
  59. - run:
  60. name: Install dependencies
  61. command: npm install
  62. - run:
  63. name: Test ESLint 6
  64. command: npm run test:v6
  65. release:
  66. docker:
  67. - image: circleci/node:8
  68. steps:
  69. - checkout
  70. - run:
  71. name: Install dependencies
  72. command: npm install
  73. - run:
  74. name: Run semantic release
  75. command: npm run semantic-release