config.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. version: 2
  2. jobs:
  3. test_with_node_6:
  4. docker:
  5. - image: circleci/node:6
  6. steps:
  7. - checkout
  8. - run:
  9. name: Install dependencies
  10. command: npm install
  11. - run:
  12. name: Test
  13. command: npm test
  14. test_with_node_8:
  15. docker:
  16. - image: circleci/node:8
  17. steps:
  18. - checkout
  19. - run:
  20. name: Install dependencies
  21. command: npm install
  22. - run:
  23. name: Test
  24. command: npm test
  25. test_with_node_9:
  26. docker:
  27. - image: circleci/node:9
  28. steps:
  29. - checkout
  30. - run:
  31. name: Install dependencies
  32. command: npm install
  33. - run:
  34. name: Test
  35. command: npm test
  36. test_with_node_10:
  37. docker:
  38. - image: circleci/node:10
  39. steps:
  40. - checkout
  41. - run:
  42. name: Install dependencies
  43. command: npm install
  44. - run:
  45. name: Test
  46. command: npm test
  47. - run:
  48. name: Deploy coverage
  49. command: bash <(curl -s https://codecov.io/bash)
  50. test_with_node_11:
  51. docker:
  52. - image: circleci/node:11
  53. steps:
  54. - checkout
  55. - run:
  56. name: Install dependencies
  57. command: npm install
  58. - run:
  59. name: Test
  60. command: npm run test:coverage
  61. - run:
  62. name: Deploy coverage
  63. command: bash <(curl -s https://codecov.io/bash)
  64. workflows:
  65. version: 2
  66. test_all:
  67. jobs:
  68. - test_with_node_6
  69. - test_with_node_8
  70. - test_with_node_9
  71. - test_with_node_10
  72. - test_with_node_11