Current File : //lib/node_modules/pm2/node_modules/@pm2/io/.drone.yml |
pipeline:
test:
image: node:${NODE_VERSION}
environment:
- NODE_ENV=test
commands:
- node -v
- yarn -v
- uname -r
- npm install 2> /dev/null
- export PATH=$PATH:./node_modules/.bin/
- npm run test
- npm run send-coverage
secrets: [ codecov_token ]
when:
event: push
slack:
image: plugins/slack
channel: ci
status: [ success, failure ]
template: |
{{#success build.status}}
{{repo.name}} : {{build.event}} with commit {{truncate build.commit 8}} on branch "{{build.branch}}" with node:${NODE_VERSION} done by {{build.author}} succeeded in {{since build.started}}
{{else}}
{{repo.name}} : {{build.event}} with commit {{truncate build.commit 8}} on branch "{{build.branch}}" with node:${NODE_VERSION} done by {{build.author}} failed in {{since build.started}}
{{/success}}
see {{ build.link }}
secrets: [ slack_webhook ]
build:
image: node:${NODE_VERSION}
commands:
- node -v
- yarn -v
- uname -r
- yarn 2> /dev/null
- export PATH=$PATH:./node_modules/.bin/
- mkdir build
- yarn build
when:
event: [ tag ]
matrix:
NODE_VERSION:
- 4
- 6
- 8
- 10