.drone.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. - npx grunt amdconfig requirejs:test_runner
  22. - name: test-on-floor
  23. image: node:12
  24. commands:
  25. - if [ -f .skip ]; then exit; fi
  26. - node test_runner.js
  27. ---
  28. kind: pipeline
  29. name: built-cli
  30. steps:
  31. - name: check
  32. image: herbysk/drone-plugin-check-changes
  33. settings:
  34. ignore: [ "/**", "!/.drone.yml", "!/*.json", "!/*.js", "!/sdk/", "!/lang/", "!/cli/", "/cli/dist/" ]
  35. negative: .skip
  36. - name: prepare
  37. image: node:lts
  38. commands:
  39. - if [ -f .skip ]; then exit; fi
  40. - npm install
  41. - cd sdk
  42. - npm install
  43. - cd ..
  44. - cd cli
  45. - npm install ../lang
  46. - npm install
  47. - name: build
  48. image: node:lts
  49. commands:
  50. - if [ -f .skip ]; then exit; fi
  51. - npm run build:cli
  52. - name: test
  53. image: node:lts
  54. commands:
  55. - if [ -f .skip ]; then exit; fi
  56. - npm run test:e2e
  57. ---
  58. kind: pipeline
  59. name: installable-cli
  60. steps:
  61. - name: check
  62. image: herbysk/drone-plugin-check-changes
  63. settings:
  64. ignore: [ "/**", "!/.drone.yml", "!/package.json", "!/Gruntfile.js", "!/sdk/", "!/cli/package.json", "!/cli/test/" ]
  65. negative: .skip
  66. - name: prepare
  67. image: node:lts
  68. commands:
  69. - if [ -f .skip ]; then exit; fi
  70. - cd cli
  71. - npm install ../lang
  72. - npm install
  73. - name: install-and-test
  74. image: node:lts
  75. environment:
  76. AMBER_CLI: amber
  77. commands:
  78. - if [ -f .skip ]; then exit; fi
  79. - npm install -g @ambers/cli
  80. - npm run test:e2e