-
Notifications
You must be signed in to change notification settings - Fork 12
/
.drone.yml
62 lines (54 loc) · 1.06 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: format
image: crystallang/crystal:latest-alpine
commands:
- crystal tool format --check
- name: build
image: crystallang/crystal:latest-alpine
volumes:
- name: cache
path: /root/.cache
commands:
- shards install
- shards build --static
- name: lint
image: crystallang/crystal:latest-alpine
commands:
- bin/ameba
- name: test
volumes:
- name: cache
path: /root/.cache
image: crystallang/crystal:latest-alpine
commands:
- crystal spec -D allow_root --warnings all --error-on-warnings
- name: build docs
image: crystallang/crystal:latest-alpine
volumes:
- name: docs
path: /docs
commands:
- crystal docs -o /docs
- name: publish docs
image: jrei/gh-pages-ci
volumes:
- name: docs
path: /docs
environment:
GIT_USER: Drone CI
GIT_COMMIT_MESSAGE: Update docs
SITE_TEMP_DIR: /docs
SSH_PRIVATE_KEY:
from_secret: ssh_private_key
when:
branch: [ master ]
volumes:
- name: cache
temp: {}
- name: docs
temp: {}