Skip to content

Commit 54605ef

Browse files
committed
Try circleci
1 parent bbd98e3 commit 54605ef

1 file changed

Lines changed: 150 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# Use the latest 2.1 version of CircleCI pipeline processing engine, see https://circleci.com/docs/2.0/configuration-reference/
2+
version: 2.1
3+
4+
# Use a package of configuration called an orb, see https://circleci.com/docs/2.0/orb-intro/
5+
orbs:
6+
node: circleci/[email protected]
7+
8+
commands:
9+
npm-smoke-test:
10+
steps:
11+
- run: node --version
12+
- run: npm version
13+
- run: npm install -g bower
14+
- checkout
15+
- node/with-cache:
16+
steps:
17+
- run: npm run smoke-test
18+
19+
yarn-smoke-test:
20+
steps:
21+
- run: node --version
22+
- run: npm version
23+
- run: npm install -g bower
24+
- checkout
25+
- node/install-yarn
26+
- node/with-cache:
27+
steps:
28+
- run: yarn smoke-test-yarn
29+
30+
node-test:
31+
steps:
32+
- run: node --version
33+
- run: npm version
34+
- checkout
35+
- node/install-yarn
36+
- node/with-cache:
37+
steps:
38+
- run:
39+
name: Install dependencies
40+
command: yarn install
41+
- run: npm install -g bower
42+
- run: yarn node-test
43+
44+
45+
jobs:
46+
lint:
47+
docker:
48+
- image: circleci/node:lts
49+
steps:
50+
- run: node --version
51+
- run: npm version
52+
- checkout
53+
- node/install-yarn
54+
- node/with-cache:
55+
steps:
56+
- run:
57+
name: Install dependencies
58+
command: yarn install
59+
- run:
60+
name: Lint files
61+
command: yarn lint
62+
63+
node-v8-smoke-test:
64+
docker:
65+
- image: circleci/node:8-browsers
66+
steps:
67+
- npm-smoke-test
68+
69+
node-v8-yarn-smoke-test:
70+
docker:
71+
- image: circleci/node:8-browsers
72+
steps:
73+
- yarn-smoke-test
74+
75+
node-lts-smoke-test:
76+
docker:
77+
- image: circleci/node:lts-browsers
78+
steps:
79+
- npm-smoke-test
80+
81+
yarn-lts-smoke-test:
82+
docker:
83+
- image: circleci/node:lts-browsers
84+
steps:
85+
- yarn-smoke-test
86+
87+
node-current-smoke-test:
88+
docker:
89+
- image: circleci/node:current-browsers
90+
steps:
91+
- npm-smoke-test
92+
93+
yarn-current-smoke-test:
94+
docker:
95+
- image: circleci/node:current-browsers
96+
steps:
97+
- yarn-smoke-test
98+
99+
all-commands-smoke-test:
100+
docker:
101+
- image: circleci/node:lts-browsers
102+
steps:
103+
- run: node --version
104+
- run: npm version
105+
- checkout
106+
- node/with-cache:
107+
steps:
108+
- run: npm run client-test
109+
110+
node-lts-test:
111+
docker:
112+
- image: circleci/node:lts-browsers
113+
steps:
114+
- node-test
115+
116+
# Orchestrate or schedule a set of jobs, see https://circleci.com/docs/2.0/workflows/
117+
workflows:
118+
node-matrix:
119+
jobs:
120+
- lint
121+
- node-lts-test
122+
- node-v8-smoke-test:
123+
requires:
124+
- lint
125+
- node-lts-test
126+
- node-v8-yarn-smoke-test:
127+
requires:
128+
- lint
129+
- node-lts-test
130+
- node-lts-smoke-test:
131+
requires:
132+
- lint
133+
- node-lts-test
134+
- yarn-lts-smoke-test:
135+
requires:
136+
- lint
137+
- node-lts-test
138+
- node-current-smoke-test:
139+
requires:
140+
- lint
141+
- node-lts-test
142+
- yarn-current-smoke-test:
143+
requires:
144+
- lint
145+
- node-lts-test
146+
- all-commands-smoke-test:
147+
requires:
148+
- lint
149+
- node-lts-test
150+

0 commit comments

Comments
 (0)