forked from sinonjs/sinon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
70 lines (63 loc) · 1.66 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 2
jobs:
build-common: &common-build
docker:
- image: node
environment:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
working_directory: ~/sinon
steps:
- run:
name: Versions
command: npm version
- checkout
- restore_cache:
keys:
- v3-npm-{{ .Branch }}-{{ checksum "package.json" }}
- v3-npm-master-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: |
npm config set strict-ssl false
npm install
- run:
name: Pre-Test
# ESLint only supports Node >=4
command: |
if node --version | grep -q '^v10'; then
npm run lint
npm run test-headless -- --chrome "$SINON_CHROME_BIN" --allow-chrome-as-root
npm run test-webworker -- --chrome "$SINON_CHROME_BIN" --allow-chrome-as-root
npm run test-esm-bundle
if [ -z "$CIRCLE_PULL_REQUESTS" ]; then
npm run test-cloud
fi
fi
- run:
name: Test
command: npm run test-node
- save_cache:
key: v3-npm-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- node_modules
node-6:
<<: *common-build
docker:
- image: node:6-alpine
node-8:
<<: *common-build
docker:
- image: node:8-alpine
node-10:
<<: *common-build
docker:
- image: circleci/node:10.15.1-browsers
environment:
SINON_CHROME_BIN: /usr/bin/google-chrome-stable
workflows:
version: 2
build:
jobs:
- node-6
- node-8
- node-10