123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- kind: pipeline
- name: lang
- steps:
- - name: check
- image: herbysk/drone-plugin-check-changes
- settings:
- ignore: [ "/**", "!/.drone.yml", "!/*.json", "!/*.js", "!/sdk/", "!/lang/" ]
- negative: .skip
- - name: prepare
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm install
- - cd sdk
- - npm install
- - name: test
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm run test:sunit
- ---
- kind: pipeline
- name: built-cli
- steps:
- - name: check
- image: herbysk/drone-plugin-check-changes
- settings:
- ignore: [ "/**", "!/.drone.yml", "!/*.json", "!/*.js", "!/sdk/", "!/lang/", "!/cli/", "/cli/dist/" ]
- negative: .skip
- - name: prepare
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm install
- - cd sdk
- - npm install
- - cd ..
- - cd cli
- - npm install ../lang
- - npm install
- - name: build
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm run build:cli
- - name: test
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm run test:e2e
- ---
- kind: pipeline
- name: installable-cli
- steps:
- - name: check
- image: herbysk/drone-plugin-check-changes
- settings:
- ignore: [ "/**", "!/.drone.yml", "!/package.json", "!/Gruntfile.js", "!/sdk/", "!/cli/package.json", "!/cli/test/" ]
- negative: .skip
- - name: prepare
- image: node:lts
- commands:
- - if [ -f .skip ]; then exit; fi
- - cd cli
- - npm install ../lang
- - npm install
- - name: install-and-test
- image: node:lts
- environment:
- AMBER_CLI: amber
- commands:
- - if [ -f .skip ]; then exit; fi
- - npm install -g @ambers/cli
- - npm run test:e2e
|