Add drone.io
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-09-06 16:32:05 +02:00
parent 6f6b00fd05
commit b0d6590a64
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E
2 changed files with 119 additions and 0 deletions

117
.drone.yml Normal file
View 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

View file

@ -1,5 +1,7 @@
# 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
## License