forked from ahmadnassri/node-metalsmith-imagemin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
99 lines (80 loc) · 1.47 KB
/
circle.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: 2.1
executors:
builder:
docker:
- image: ahmadnassri/imagemin-build
node-6:
docker:
- image: node:6-slim
node-8:
docker:
- image: node:8-slim
node-10:
docker:
- image: node:10-slim
commands:
persist:
steps:
- persist_to_workspace:
root: .
paths: .
attach:
steps:
- attach_workspace:
at: .
install:
steps:
- run:
name: Install dependencies
command: npm ci
jobs:
build:
executor: builder
steps:
- checkout
- install
- persist
lint:
executor: builder
steps:
- attach
- run: npm run lint
test-node-6:
executor: node-6
steps:
- attach
- run: npm run test
test-node-8:
executor: node-8
steps:
- attach
- run: npm run test
test-node-10:
executor: node-10
steps:
- attach
- run: npm run test
release:
executor: builder
steps:
- attach
- run: npx semantic-release
workflows:
version: 2
main:
jobs:
- build
- lint:
requires: [ build ]
- test-node-6:
requires: [ build ]
- test-node-8:
requires: [ build ]
- test-node-10:
requires: [ build ]
- release:
context: semantic-release
requires: [ build, lint, test-node-6, test-node-8, test-node-10 ]
filters:
branches:
only: master