forked from auth0/auth0.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
56 lines (55 loc) · 1.38 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
49
50
51
52
53
54
55
56
version: 2
jobs:
build:
docker:
- image: circleci/node:12-browsers
environment:
LANG: en_US.UTF-8
steps:
- checkout
- restore-cache:
name: Restore Package Cache
keys:
- npm-packages-{{ checksum "package-lock.json" }}
- run:
name: Install Dependencies
command: npm install
- save-cache:
name: Save Package Cache
key: npm-packages-{{ checksum "package-lock.json" }}
paths:
- ~/.cache/npm
- run:
name: Build
command: npm run build
- run:
name: Check for JS incompatibility
command: npm run test:es-check:es5 && npm run test:es-check:es2015:module
- run:
name: Lint
command: npm run lint
- run:
name: Run Tests
command: npm run ci:test
environment:
MOCHA_FILE: junit/test-results.xml
when: always
- run:
name: Generate Coverage
command: npm run ci:coverage
- run:
name: BrowserStack tests
command: npm run test:e2e:browserstack
- store_artifacts:
path: dist
- store_artifacts:
path: junit
- store_test_results:
path: junit
workflows:
version: 2
default:
jobs:
- build:
context:
- browserstack-env