Fix drone.io triggers on PRs and enable parallelism (#13)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d34fb1298b
commit
0872bb07f6
1 changed files with 28 additions and 0 deletions
28
.drone.yml
28
.drone.yml
|
@ -16,11 +16,15 @@ steps:
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- yarn
|
||||||
|
depends_on:
|
||||||
|
- restore-cache
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
|
depends_on:
|
||||||
|
- dependencies
|
||||||
|
|
||||||
- name: upload_build_versioned
|
- name: upload_build_versioned
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
|
@ -34,6 +38,11 @@ steps:
|
||||||
target: /${DRONE_COMMIT_SHA:0:8}/
|
target: /${DRONE_COMMIT_SHA:0:8}/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
- name: upload_build_pr
|
- name: upload_build_pr
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
|
@ -50,6 +59,8 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
- name: upload_build_master
|
- name: upload_build_master
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
|
@ -64,18 +75,26 @@ steps:
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn test:unit
|
- yarn test:unit
|
||||||
|
depends_on:
|
||||||
|
- dependencies
|
||||||
|
|
||||||
- name: coverage
|
- name: coverage
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn test:unit --coverage
|
- yarn test:unit --coverage
|
||||||
|
depends_on:
|
||||||
|
- dependencies
|
||||||
|
|
||||||
- name: upload_coverage
|
- name: upload_coverage
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
|
@ -89,6 +108,11 @@ steps:
|
||||||
target: /${DRONE_COMMIT_SHA:0:8}/
|
target: /${DRONE_COMMIT_SHA:0:8}/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
depends_on:
|
||||||
|
- coverage
|
||||||
|
|
||||||
- name: upload_coverage_pr
|
- name: upload_coverage_pr
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
|
@ -105,6 +129,8 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
depends_on:
|
||||||
|
- coverage
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
|
@ -115,3 +141,5 @@ steps:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
|
depends_on:
|
||||||
|
- dependencies
|
||||||
|
|
Loading…
Reference in a new issue