-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
33 lines (33 loc) · 994 Bytes
/
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
version: 2.1
orbs:
# Circle Node orb makes it simple to cache dependencies
# https://circleci.com/orbs/registry/orb/circleci/node
node: circleci/node@1.1
jobs:
build:
executor:
name: node/default
tag: '12'
steps:
- checkout
- node/with-cache:
steps:
- run:
name: install dependencies 📦
command: npm ci
- run:
command: FORCE_COLOR=2 npx mocha spec.js --reporter spec | bin/term-to-html.js > mocha.html
name: example page 📊
- store_artifacts:
path: mocha.html
- run:
command: FORCE_COLOR=2 npx mocha spec.js --reporter spec | bin/term-to-html.js --theme dark > mocha-dark.html
name: example dark page 📊
- store_artifacts:
path: mocha-dark.html
- run:
name: run tests 🧪
command: npm run e2e
- run:
name: NPM publish 🚀
command: npm run semantic-release