This repository has been archived by the owner on Mar 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
68 lines (66 loc) · 1.75 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
workflows:
version: 2
node-multi-build:
jobs:
- node-v8
- node-latest
e2e:
jobs:
- update-dependencies
triggers:
- schedule:
cron: "0 0 * * 2" # On every Tuesday 09:00 (JST)
filters:
branches:
only:
- master
version: 2
jobs:
base: &base
docker:
- image: circleci/node:latest
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-{{ checksum "package-lock.json" }}
- v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-
- run: npm install
- run: npm run bootstrap
- save_cache:
paths:
- node_modules
key: v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-{{ checksum "package-lock.json" }}
- run: npm run lint
- run: npm run flow
- run: npm test
- run: |
mkdir /tmp/hothouse-install-locally
cd /tmp/hothouse-install-locally
npm install $CIRCLE_WORKING_DIRECTORY/packages/hothouse
- run: |
mkdir /tmp/hothouse-install-globally
cd /tmp/hothouse-install-globally
npm install -g $CIRCLE_WORKING_DIRECTORY/packages/hothouse
- run: bash <(curl -s https://codecov.io/bash)
node-v8:
<<: *base
docker:
- image: node:8
node-latest:
<<: *base
docker:
- image: node:latest
update-dependencies:
<<: *base
docker:
- image: node:8
steps:
- checkout
- run: npm install
- run: npm run bootstrap
- run: |
git config user.name hothouse
git config user.email hothouse@example.com
- run: npx hothouse -t $GITHUB_TOKEN