This commit is contained in:
parent
6f6b00fd05
commit
b0d6590a64
2 changed files with 119 additions and 0 deletions
117
.drone.yml
Normal file
117
.drone.yml
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- ./node_modules
|
||||||
|
|
||||||
|
- name: dependencies
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- yarn
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- yarn build
|
||||||
|
|
||||||
|
- name: upload_build_versioned
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: mcg
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret
|
||||||
|
source: dist/**/*
|
||||||
|
target: /mcg/${DRONE_COMMIT_SHA:0:8}/dist/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
|
||||||
|
- name: upload_build_pr
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: mcg
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret
|
||||||
|
source: dist/**/*
|
||||||
|
target: /mcg/pr-${DRONE_PULL_REQUEST}/dist/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
- name: upload_build_master
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: mcg
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret
|
||||||
|
source: dist/**/*
|
||||||
|
target: /mcg/latest/dist/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- yarn test:unit
|
||||||
|
|
||||||
|
- name: coverage
|
||||||
|
image: node
|
||||||
|
commands:
|
||||||
|
- yarn test:unit --coverage
|
||||||
|
|
||||||
|
- name: upload_coverage
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: mcg
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret
|
||||||
|
source: coverage/lcov-report/**/*
|
||||||
|
target: /mcg/${DRONE_COMMIT_SHA:0:8}/coverage/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
|
||||||
|
- name: upload_coverage_pr
|
||||||
|
image: plugins/s3
|
||||||
|
settings:
|
||||||
|
bucket: mcg
|
||||||
|
access_key:
|
||||||
|
from_secret: minio_access
|
||||||
|
secret_key:
|
||||||
|
from_secret: minio_secret
|
||||||
|
source: coverage/lcov-report/**/*
|
||||||
|
target: /mcg/${DRONE_COMMIT_SHA:0:8}/coverage/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- ./node_modules
|
|
@ -1,5 +1,7 @@
|
||||||
# MLPCARDGAME
|
# MLPCARDGAME
|
||||||
|
|
||||||
|
[![Build Status](https://drone.zyg.ovh/api/badges/mcg/mlpcardgame/status.svg)](https://drone.zyg.ovh/mcg/mlpcardgame)
|
||||||
|
|
||||||
Work in progress name, work in progress game
|
Work in progress name, work in progress game
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Reference in a new issue