49
49
environment :
50
50
GOIMAGE : << pipeline.parameters.goImage >>
51
51
52
- download-demo-data :
53
- executor : machine-executor
54
- steps :
55
- - run : mkdir -p $HOME/resources
56
- - run :
57
- name : Download itzpapalotl demo foxx service
58
- command : |
59
- if [ -z "$CIRCLE_PULL_REQUEST" ]; then
60
- echo "This is not a pull request. Skipping..."
61
- exit 0
62
- fi
63
- if ! [ -f "$HOME/resources/itzpapalotl-v1.2.0.zip" ]; then
64
- curl -L0 -o $HOME/resources/itzpapalotl-v1.2.0.zip "https://github.com/arangodb-foxx/demo-itzpapalotl/archive/v1.2.0.zip"
65
- fi
66
- - run : ls -l $HOME/resources
67
- - persist_to_workspace :
68
- root : ~/
69
- paths :
70
- - resources
71
-
72
52
run-integration-tests :
73
53
executor : machine-executor
74
54
parameters :
82
62
- checkout
83
63
- attach_workspace :
84
64
at : ~/
65
+ - run :
66
+ name : Create resources symlink
67
+ command : |
68
+ if [ -d "${HOME}/resources" ]; then
69
+ sudo mkdir -p /tmp/resources
70
+ sudo cp -r ${HOME}/resources/* /tmp/resources/
71
+ ls -la /tmp/resources/
72
+ fi
85
73
- run : echo "TEST_RESOURCES=$TEST_RESOURCES"
86
74
- run : ls -l $TEST_RESOURCES
87
75
- run :
@@ -102,6 +90,26 @@ jobs:
102
90
TEST_DISALLOW_UNKNOWN_FIELDS : false
103
91
VERBOSE : 1
104
92
93
+ download-demo-data :
94
+ executor : machine-executor
95
+ steps :
96
+ - run : mkdir -p $HOME/resources
97
+ - run :
98
+ name : Download itzpapalotl demo foxx service
99
+ command : |
100
+ if [ -z "$CIRCLE_PULL_REQUEST" ]; then
101
+ echo "This is not a pull request. Skipping..."
102
+ exit 0
103
+ fi
104
+ if ! [ -f "$HOME/resources/itzpapalotl-v1.2.0.zip" ]; then
105
+ curl -L0 -o $HOME/resources/itzpapalotl-v1.2.0.zip "https://github.com/arangodb-foxx/demo-itzpapalotl/archive/v1.2.0.zip"
106
+ fi
107
+ - run : ls -l $HOME/resources
108
+ - persist_to_workspace :
109
+ root : ~/
110
+ paths :
111
+ - resources
112
+
105
113
vulncheck :
106
114
executor : golang-executor
107
115
steps :
@@ -131,13 +139,11 @@ workflows:
131
139
requires :
132
140
- download-demo-data
133
141
test-to-run : run-tests-cluster
134
-
135
142
- run-integration-tests :
136
143
name : Test V2 cluster
137
144
requires :
138
145
- download-demo-data
139
146
test-to-run : run-v2-tests-cluster
140
-
141
147
- run-integration-tests :
142
148
name : Test V2 cluster - DB extra features (compression)
143
149
requires :
@@ -150,12 +156,12 @@ workflows:
150
156
requires :
151
157
- download-demo-data
152
158
test-to-run : run-tests-single
153
-
154
159
- run-integration-tests :
155
160
name : Test V2 single
156
161
requires :
157
162
- download-demo-data
158
163
test-to-run : run-v2-tests-single
164
+
159
165
# Weekly vulnerability check
160
166
weekly_vulncheck :
161
167
jobs :
@@ -168,4 +174,4 @@ workflows:
168
174
cron : 0 6 * * 1
169
175
filters :
170
176
branches :
171
- only : master
177
+ only : master
0 commit comments