.drone.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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
  66. - name: install-and-test
  67. image: node:lts
  68. environment:
  69. AMBER_CLI: amber
  70. commands:
  71. - if [ -f .skip ]; then exit; fi
  72. - npm install -g @ambers/cli
  73. - npm run test:e2e