-
Notifications
You must be signed in to change notification settings - Fork 12
/
circle.yml
104 lines (78 loc) · 2.19 KB
/
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: 2
jobs:
install_dependencies:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run:
name: Huh
command: echo "What"
- restore_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Copy truffle config
command: cp truffle.js.example truffle.js && ls
- run:
name: Check yarn.lock md5 first
command: md5sum yarn.lock
- run:
name: Yarn install
command: yarn install --frozen-lockfile && echo "Yarn completed successfully"
- run:
name: Check yarn.lock md5 second
command: md5sum yarn.lock
- save_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
test:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Copy truffle config
command: cp truffle.js.example truffle.js && ls
- run:
name: Test suite
command: bin/test
verify_typings:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Copy truffle config
command: cp truffle.js.example truffle.js && ls
- run:
name: Check that typings are in sync
command: yarn generate && git diff --exit-code
check_prettier:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run:
name: Check for prettier violations
command: bin/prettier && git diff --exit-code
workflows:
version: 2
build_and_test:
jobs:
- install_dependencies
- test:
requires:
- install_dependencies
- verify_typings:
requires:
- install_dependencies
- check_prettier:
requires:
- install_dependencies