.drone.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. kind: pipeline
  2. name: lang
  3. steps:
  4. - name: check
  5. image: herbysk/drone-plugin-check-changes
  6. settings:
  7. ignore: [ "/**", "!/.drone.yml", "!/*.json", "!/*.js", "!/sdk/", "!/lang/" ]
  8. negative: .skip
  9. - name: prepare
  10. image: node:lts
  11. commands:
  12. - if [ -f .skip ]; then exit; fi
  13. - npm install
  14. - cd sdk
  15. - npm install
  16. - name: test
  17. image: node:lts
  18. commands:
  19. - if [ -f .skip ]; then exit; fi
  20. - npm run test:sunit
  21. ---
  22. kind: pipeline
  23. name: built-cli
  24. steps:
  25. - name: check
  26. image: herbysk/drone-plugin-check-changes
  27. settings:
  28. ignore: [ "/**", "!/.drone.yml", "!/*.json", "!/*.js", "!/sdk/", "!/lang/", "!/cli/", "/cli/dist/" ]
  29. negative: .skip
  30. - name: prepare
  31. image: node:lts
  32. commands:
  33. - if [ -f .skip ]; then exit; fi
  34. - npm install
  35. - cd sdk
  36. - npm install
  37. - cd ..
  38. - cd cli
  39. - npm install ../lang
  40. - npm install
  41. - name: build
  42. image: node:lts
  43. commands:
  44. - if [ -f .skip ]; then exit; fi
  45. - npm run build:cli
  46. - name: test
  47. image: node:lts
  48. commands:
  49. - if [ -f .skip ]; then exit; fi
  50. - npm run test:e2e
  51. ---
  52. kind: pipeline
  53. name: installable-cli
  54. steps:
  55. - name: check
  56. image: herbysk/drone-plugin-check-changes
  57. settings:
  58. ignore: [ "/**", "!/.drone.yml", "!/package.json", "!/Gruntfile.js", "!/sdk/", "!/cli/package.json", "!/cli/test/" ]
  59. negative: .skip
  60. - name: prepare
  61. image: node:lts
  62. commands:
  63. - if [ -f .skip ]; then exit; fi
  64. - cd cli
  65. - npm install ../lang
  66. - npm install
  67. - name: install-and-test
  68. image: node:lts
  69. environment:
  70. AMBER_CLI: amber
  71. commands:
  72. - if [ -f .skip ]; then exit; fi
  73. - npm install -g @ambers/cli
  74. - npm run test:e2e