forked from auth0/auth0.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
48 lines (48 loc) · 1.25 KB
/
config.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
version: 2
jobs:
build:
docker:
- image: circleci/node:10-browsers
environment:
LANG: en_US.UTF-8
steps:
- checkout
- run:
name: Update Yarn
command: 'sudo npm update -g yarn'
- restore-cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install
- save-cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Build
command: yarn run build
- run:
name: Check for JS incompatibility
command: yarn test:es-check:es5 && yarn test:es-check:es2015:module
- run:
name: Lint
command: yarn run lint
- run:
name: Run Tests
command: yarn run ci:test
environment:
MOCHA_FILE: junit/test-results.xml
when: always
- run:
name: Generate Coverage
command: yarn run ci:coverage
- store_artifacts:
path: dist
- store_artifacts:
path: junit
- store_test_results:
path: junit