1
0

.drone.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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
  40. - name: build
  41. image: node:lts
  42. commands:
  43. - if [ -f .skip ]; then exit; fi
  44. - npm run build:cli
  45. - name: test
  46. image: node:lts
  47. commands:
  48. - if [ -f .skip ]; then exit; fi
  49. - npm run test:e2e
  50. ---
  51. kind: pipeline
  52. name: installable-cli
  53. steps:
  54. - name: check
  55. image: herbysk/drone-plugin-check-changes
  56. settings:
  57. ignore: [ "/**", "!/.drone.yml", "!/package.json", "!/Gruntfile.js", "!/sdk/", "!/cli/package.json", "!/cli/test/" ]
  58. negative: .skip
  59. - name: prepare
  60. image: node:lts
  61. commands:
  62. - if [ -f .skip ]; then exit; fi
  63. - cd cli
  64. - npm install
  65. - name: install-and-test
  66. image: node:lts
  67. environment:
  68. AMBER_CLI: amber
  69. commands:
  70. - if [ -f .skip ]; then exit; fi
  71. - npm install -g @ambers/cli
  72. - npm run test:e2e