14
14
working_directory : ~/plotly.js
15
15
steps :
16
16
- checkout
17
- - restore_cache :
18
- keys :
19
- - v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package-lock.json" }}
20
- - v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package-lock.json" }}
21
17
- run :
22
18
name : Install dependencies
23
19
command : |
@@ -33,26 +29,21 @@ jobs:
33
29
command : |
34
30
npm run pretest
35
31
npm run cibuild
36
- - save_cache :
37
- paths :
38
- - node_modules
39
- key : v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package.json" }}
32
+ - run :
33
+ command : rm -rf .git
40
34
- persist_to_workspace :
41
- root : .
35
+ root : /home/circleci
42
36
paths :
43
- - node_modules
44
- - build
45
- - dist
37
+ - plotly.js
46
38
47
39
test-jasmine :
48
40
docker :
49
41
# need '-browsers' version to test in real (xvfb-wrapped) browsers
50
42
- image : circleci/node:10.9.0-browsers
51
43
working_directory : ~/plotly.js
52
44
steps :
53
- - checkout
54
45
- attach_workspace :
55
- at : ~/plotly.js
46
+ at : ~/
56
47
- run :
57
48
name : Run jasmine tests (batch 1)
58
49
command : ./.circleci/test.sh jasmine
63
54
- image : circleci/node:10.9.0-browsers
64
55
working_directory : ~/plotly.js
65
56
steps :
66
- - checkout
67
57
- attach_workspace :
68
- at : ~/plotly.js
58
+ at : ~/
69
59
- run :
70
60
name : Run jasmine tests (batch 2)
71
61
command : ./.circleci/test.sh jasmine2
76
66
- image : circleci/node:10.9.0-browsers
77
67
working_directory : ~/plotly.js
78
68
steps :
79
- - checkout
80
69
- attach_workspace :
81
- at : ~/plotly.js
70
+ at : ~/
82
71
- run :
83
72
name : Run jasmine tests (batch 3)
84
73
command : ./.circleci/test.sh jasmine3
88
77
- image : plotly/testbed:latest
89
78
working_directory : /var/www/streambed/image_server/plotly.js/
90
79
steps :
91
- - checkout
92
80
- attach_workspace :
93
- at : /var/www/streambed/image_server/plotly.js/
81
+ at : /var/www/streambed/image_server/
94
82
- run :
95
83
name : Run and setup container
96
84
command : |
108
96
- image : plotly/testbed:latest
109
97
working_directory : /var/www/streambed/image_server/plotly.js/
110
98
steps :
111
- - checkout
112
99
- attach_workspace :
113
- at : /var/www/streambed/image_server/plotly.js/
100
+ at : /var/www/streambed/image_server/
114
101
- run :
115
102
name : Run and setup container
116
103
command : |
@@ -128,9 +115,8 @@ jobs:
128
115
- image : circleci/node:10.9.0
129
116
working_directory : ~/plotly.js
130
117
steps :
131
- - checkout
132
118
- attach_workspace :
133
- at : ~/plotly.js
119
+ at : ~/
134
120
- run :
135
121
name : Run syntax tests
136
122
command : ./.circleci/test.sh syntax
@@ -140,9 +126,8 @@ jobs:
140
126
- image : circleci/node:10.9.0
141
127
working_directory : ~/plotly.js
142
128
steps :
143
- - checkout
144
129
- attach_workspace :
145
- at : ~/plotly.js
130
+ at : ~/
146
131
- run :
147
132
name : Build dist/
148
133
command : npm run build
0 commit comments