decidim 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.circleci/config.yml +194 -284
- data/.decidim-version +1 -1
- data/.eslintignore +0 -1
- data/.gitignore +0 -1
- data/CHANGELOG.md +7 -0
- data/Dockerfile.ci +28 -0
- data/Gemfile +0 -2
- data/Gemfile.lock +56 -60
- data/README.md +4 -0
- data/docker-compose.yml +6 -3
- data/lib/decidim/version.rb +1 -1
- data/lib/generators/decidim/app_generator.rb +0 -4
- data/lib/generators/decidim/templates/Dockerfile.erb +1 -26
- data/lib/generators/decidim/templates/docker-compose.yml.erb +24 -5
- data/package-lock.json +1 -1
- data/package.json +1 -1
- data/spec/generator_spec.rb +10 -6
- metadata +27 -27
- data/Dockerfile +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d308873f50016a661614f19b67932a9c21ce683e19d5471bfa3e4c63e9ceec95
|
4
|
+
data.tar.gz: ecad70ad991d8e7fd0b68b53a4a6f11062a2cb660c6db2b5f299267debf7a913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc55efa7058cd0b7a6bffe14099923c74a1bdc49b81dca142a108b6fd097190eb76586545eef080f186d9499df2723c91162c61a5bafbc8214d857ec113a46ca
|
7
|
+
data.tar.gz: 0ffb496ea81ebaf3ee109d113b0ecfe7325f278b49551595d9703b521767a2e3689c151713cb9bb72c17dfd788ca7a395e62611cc025d67d89b33ce44a4e35aa
|
data/.circleci/config.yml
CHANGED
@@ -2,476 +2,386 @@ version: 2
|
|
2
2
|
|
3
3
|
defaults: &defaults
|
4
4
|
docker:
|
5
|
-
- image:
|
5
|
+
- image: decidim/decidim:latest-dev
|
6
6
|
environment:
|
7
7
|
SIMPLECOV: true
|
8
8
|
DATABASE_USERNAME: postgres
|
9
|
+
FAIL_FAST: true
|
9
10
|
- image: postgres
|
10
11
|
environment:
|
11
12
|
POSTGRES_USER: postgres
|
12
|
-
working_directory: /
|
13
|
+
working_directory: /app
|
14
|
+
|
15
|
+
dependency_cache: &dependency_cache
|
16
|
+
keys:
|
17
|
+
- dependencies-{{ .Branch }}
|
18
|
+
- dependencies-master
|
13
19
|
|
14
20
|
jobs:
|
15
|
-
|
21
|
+
build_test_app:
|
16
22
|
<<: *defaults
|
17
23
|
steps:
|
18
|
-
- run:
|
19
|
-
name: Install PhantomJS
|
20
|
-
command: |
|
21
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
22
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
23
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
24
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
25
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
26
24
|
- checkout
|
25
|
+
- restore_cache:
|
26
|
+
<<: *dependency_cache
|
27
|
+
- run:
|
28
|
+
name: Install ruby dependencies
|
29
|
+
command: bundle install
|
30
|
+
- run:
|
31
|
+
name: Install npm dependencies
|
32
|
+
command: npm install
|
33
|
+
- save_cache:
|
34
|
+
key: dependencies-{{ .Branch }}
|
35
|
+
paths:
|
36
|
+
- /usr/local/bundle/
|
37
|
+
- node_modules
|
27
38
|
- run:
|
28
|
-
name:
|
29
|
-
command:
|
30
|
-
bundle install
|
31
|
-
npm i
|
39
|
+
name: Wait for db
|
40
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
32
41
|
- run:
|
33
42
|
name: Generate test app
|
34
43
|
command: bundle exec rake decidim:generate_test_app
|
44
|
+
- restore_cache:
|
45
|
+
keys:
|
46
|
+
- assets-{{ .Branch }}
|
47
|
+
- assets-master
|
48
|
+
- run:
|
49
|
+
name: Precompile test app assets
|
50
|
+
command: cd spec/decidim_dummy_app && bundle exec rails assets:precompile
|
51
|
+
- save_cache:
|
52
|
+
key: assets-{{ .Branch }}
|
53
|
+
paths:
|
54
|
+
- spec/decidim_dummy_app/public/assets
|
35
55
|
- persist_to_workspace:
|
36
|
-
root:
|
56
|
+
root: /app
|
37
57
|
paths:
|
38
58
|
- "*"
|
39
59
|
main:
|
40
60
|
<<: *defaults
|
41
61
|
steps:
|
42
62
|
- attach_workspace:
|
43
|
-
at: /
|
63
|
+
at: /app
|
64
|
+
- checkout
|
65
|
+
- restore_cache:
|
66
|
+
<<: *dependency_cache
|
44
67
|
- run:
|
45
|
-
name: Install
|
46
|
-
command:
|
47
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
48
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
49
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
50
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
51
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
68
|
+
name: Install ruby dependencies
|
69
|
+
command: bundle install
|
52
70
|
- run:
|
53
|
-
name:
|
54
|
-
command:
|
55
|
-
|
56
|
-
|
57
|
-
|
71
|
+
name: Install npm dependencies
|
72
|
+
command: npm install
|
73
|
+
- run:
|
74
|
+
name: Wait for db
|
75
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
58
76
|
- run:
|
59
77
|
name: Run main folder npm lint
|
60
|
-
command:
|
78
|
+
command: npm run lint
|
61
79
|
- run:
|
62
80
|
name: Run main folder RSpec
|
63
|
-
command:
|
64
|
-
- store_artifacts:
|
65
|
-
path: /code/spec/decidim_dummy_app/tmp/capybara
|
81
|
+
command: bundle exec rspec
|
66
82
|
core:
|
67
83
|
<<: *defaults
|
68
84
|
steps:
|
69
85
|
- attach_workspace:
|
70
|
-
at: /
|
71
|
-
-
|
72
|
-
|
73
|
-
command: |
|
74
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
75
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
76
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
77
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
78
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
86
|
+
at: /app
|
87
|
+
- restore_cache:
|
88
|
+
<<: *dependency_cache
|
79
89
|
- run: export CODECOV_FLAG=core
|
90
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
80
91
|
- run:
|
81
|
-
name:
|
82
|
-
command:
|
83
|
-
cd spec/decidim_dummy_app/
|
84
|
-
bundle install
|
85
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
92
|
+
name: Wait for db
|
93
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
86
94
|
- run:
|
87
|
-
name:
|
88
|
-
command: cd /
|
95
|
+
name: Create test DB
|
96
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
89
97
|
- run:
|
90
98
|
name: Run core RSpec
|
91
|
-
command: cd
|
99
|
+
command: cd decidim-core && rake
|
92
100
|
- store_artifacts:
|
93
|
-
path: /
|
101
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
94
102
|
assemblies:
|
95
103
|
<<: *defaults
|
96
104
|
steps:
|
97
105
|
- attach_workspace:
|
98
|
-
at: /
|
99
|
-
-
|
100
|
-
|
101
|
-
command: |
|
102
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
103
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
104
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
105
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
106
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
106
|
+
at: /app
|
107
|
+
- restore_cache:
|
108
|
+
<<: *dependency_cache
|
107
109
|
- run: export CODECOV_FLAG=assemblies
|
110
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
108
111
|
- run:
|
109
|
-
name:
|
110
|
-
command:
|
111
|
-
cd spec/decidim_dummy_app/
|
112
|
-
bundle install
|
113
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
112
|
+
name: Wait for db
|
113
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
114
114
|
- run:
|
115
|
-
name:
|
116
|
-
command: cd /
|
115
|
+
name: Create test DB
|
116
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
117
117
|
- run:
|
118
118
|
name: Run assemblies RSpec
|
119
|
-
command: cd
|
119
|
+
command: cd decidim-assemblies && rake
|
120
120
|
- store_artifacts:
|
121
|
-
path: /
|
121
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
122
122
|
api:
|
123
123
|
<<: *defaults
|
124
124
|
steps:
|
125
125
|
- attach_workspace:
|
126
|
-
at: /
|
127
|
-
-
|
128
|
-
|
129
|
-
command: |
|
130
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
131
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
132
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
133
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
134
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
126
|
+
at: /app
|
127
|
+
- restore_cache:
|
128
|
+
<<: *dependency_cache
|
135
129
|
- run: export CODECOV_FLAG=api
|
130
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
136
131
|
- run:
|
137
|
-
name:
|
138
|
-
command:
|
139
|
-
cd spec/decidim_dummy_app/
|
140
|
-
bundle install
|
141
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
132
|
+
name: Wait for db
|
133
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
142
134
|
- run:
|
143
|
-
name:
|
144
|
-
command: cd /
|
135
|
+
name: Create test DB
|
136
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
145
137
|
- run:
|
146
138
|
name: Run api RSpec
|
147
|
-
command: cd
|
139
|
+
command: cd decidim-api && rake
|
148
140
|
- store_artifacts:
|
149
|
-
path: /
|
141
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
150
142
|
processes:
|
151
143
|
<<: *defaults
|
152
144
|
steps:
|
153
145
|
- attach_workspace:
|
154
|
-
at: /
|
155
|
-
-
|
156
|
-
|
157
|
-
command: |
|
158
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
159
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
160
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
161
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
162
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
146
|
+
at: /app
|
147
|
+
- restore_cache:
|
148
|
+
<<: *dependency_cache
|
163
149
|
- run: export CODECOV_FLAG=processes
|
150
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
164
151
|
- run:
|
165
|
-
name:
|
166
|
-
command:
|
167
|
-
cd spec/decidim_dummy_app/
|
168
|
-
bundle install
|
169
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
152
|
+
name: Wait for db
|
153
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
170
154
|
- run:
|
171
|
-
name:
|
172
|
-
command: cd /
|
155
|
+
name: Create test DB
|
156
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
173
157
|
- run:
|
174
158
|
name: Run participatory_processes RSpec
|
175
|
-
command: cd
|
159
|
+
command: cd decidim-participatory_processes && rake
|
176
160
|
- store_artifacts:
|
177
|
-
path: /
|
161
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
178
162
|
admin:
|
179
163
|
<<: *defaults
|
180
164
|
steps:
|
181
165
|
- attach_workspace:
|
182
|
-
at: /
|
183
|
-
-
|
184
|
-
|
185
|
-
command: |
|
186
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
187
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
188
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
189
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
190
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
166
|
+
at: /app
|
167
|
+
- restore_cache:
|
168
|
+
<<: *dependency_cache
|
191
169
|
- run: export CODECOV_FLAG=admin
|
170
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
192
171
|
- run:
|
193
|
-
name:
|
194
|
-
command:
|
195
|
-
cd spec/decidim_dummy_app/
|
196
|
-
bundle install
|
197
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
172
|
+
name: Wait for db
|
173
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
198
174
|
- run:
|
199
|
-
name:
|
200
|
-
command: cd /
|
175
|
+
name: Create test DB
|
176
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
201
177
|
- run:
|
202
178
|
name: Run admin RSpec
|
203
|
-
command: cd
|
179
|
+
command: cd decidim-admin && rake
|
204
180
|
- store_artifacts:
|
205
|
-
path: /
|
181
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
206
182
|
system:
|
207
183
|
<<: *defaults
|
208
184
|
steps:
|
209
185
|
- attach_workspace:
|
210
|
-
at: /
|
211
|
-
-
|
212
|
-
|
213
|
-
command: |
|
214
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
215
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
216
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
217
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
218
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
186
|
+
at: /app
|
187
|
+
- restore_cache:
|
188
|
+
<<: *dependency_cache
|
219
189
|
- run: export CODECOV_FLAG=system
|
190
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
220
191
|
- run:
|
221
|
-
name:
|
222
|
-
command:
|
223
|
-
cd spec/decidim_dummy_app/
|
224
|
-
bundle install
|
225
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
192
|
+
name: Wait for db
|
193
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
226
194
|
- run:
|
227
|
-
name:
|
228
|
-
command: cd /
|
195
|
+
name: Create test DB
|
196
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
229
197
|
- run:
|
230
198
|
name: Run system RSpec
|
231
|
-
command: cd
|
199
|
+
command: cd decidim-system && rake
|
232
200
|
- store_artifacts:
|
233
|
-
path: /
|
201
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
234
202
|
proposals:
|
235
203
|
<<: *defaults
|
236
204
|
steps:
|
237
205
|
- attach_workspace:
|
238
|
-
at: /
|
239
|
-
-
|
240
|
-
|
241
|
-
command: |
|
242
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
243
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
244
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
245
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
246
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
206
|
+
at: /app
|
207
|
+
- restore_cache:
|
208
|
+
<<: *dependency_cache
|
247
209
|
- run: export CODECOV_FLAG=proposals
|
210
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
248
211
|
- run:
|
249
|
-
name:
|
250
|
-
command:
|
251
|
-
cd spec/decidim_dummy_app/
|
252
|
-
bundle install
|
253
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
212
|
+
name: Wait for db
|
213
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
254
214
|
- run:
|
255
|
-
name:
|
256
|
-
command: cd /
|
215
|
+
name: Create test DB
|
216
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
257
217
|
- run:
|
258
218
|
name: Run proposals RSpec
|
259
|
-
command: cd
|
219
|
+
command: cd decidim-proposals && rake
|
260
220
|
- store_artifacts:
|
261
|
-
path: /
|
221
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
262
222
|
comments:
|
263
223
|
<<: *defaults
|
264
224
|
steps:
|
265
225
|
- attach_workspace:
|
266
|
-
at: /
|
267
|
-
-
|
268
|
-
|
269
|
-
command: |
|
270
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
271
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
272
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
273
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
274
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
226
|
+
at: /app
|
227
|
+
- restore_cache:
|
228
|
+
<<: *dependency_cache
|
275
229
|
- run: export CODECOV_FLAG=comments
|
230
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
276
231
|
- run:
|
277
|
-
name:
|
278
|
-
command:
|
279
|
-
cd spec/decidim_dummy_app/
|
280
|
-
bundle install
|
281
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
232
|
+
name: Wait for db
|
233
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
282
234
|
- run:
|
283
|
-
name:
|
284
|
-
command: cd /
|
235
|
+
name: Create test DB
|
236
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
285
237
|
- run:
|
286
238
|
name: Run comments RSpec
|
287
|
-
command: cd
|
239
|
+
command: cd decidim-comments && rake
|
288
240
|
- store_artifacts:
|
289
|
-
path: /
|
241
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
290
242
|
meetings:
|
291
243
|
<<: *defaults
|
292
244
|
steps:
|
293
245
|
- attach_workspace:
|
294
|
-
at: /
|
295
|
-
-
|
296
|
-
|
297
|
-
command: |
|
298
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
299
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
300
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
301
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
302
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
246
|
+
at: /app
|
247
|
+
- restore_cache:
|
248
|
+
<<: *dependency_cache
|
303
249
|
- run: export CODECOV_FLAG=meetings
|
250
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
304
251
|
- run:
|
305
|
-
name:
|
306
|
-
command:
|
307
|
-
cd spec/decidim_dummy_app/
|
308
|
-
bundle install
|
309
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
252
|
+
name: Wait for db
|
253
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
310
254
|
- run:
|
311
|
-
name:
|
312
|
-
command: cd /
|
255
|
+
name: Create test DB
|
256
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
313
257
|
- run:
|
314
258
|
name: Run meetings RSpec
|
315
|
-
command: cd
|
259
|
+
command: cd decidim-meetings && rake
|
316
260
|
- store_artifacts:
|
317
|
-
path: /
|
261
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
318
262
|
pages:
|
319
263
|
<<: *defaults
|
320
264
|
steps:
|
321
265
|
- attach_workspace:
|
322
|
-
at: /
|
323
|
-
-
|
324
|
-
|
325
|
-
command: |
|
326
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
327
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
328
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
329
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
330
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
266
|
+
at: /app
|
267
|
+
- restore_cache:
|
268
|
+
<<: *dependency_cache
|
331
269
|
- run: export CODECOV_FLAG=pages
|
270
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
332
271
|
- run:
|
333
|
-
name:
|
334
|
-
command:
|
335
|
-
cd spec/decidim_dummy_app/
|
336
|
-
bundle install
|
337
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
272
|
+
name: Wait for db
|
273
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
338
274
|
- run:
|
339
|
-
name:
|
340
|
-
command: cd /
|
275
|
+
name: Create test DB
|
276
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
341
277
|
- run:
|
342
278
|
name: Run pages RSpec
|
343
|
-
command: cd
|
279
|
+
command: cd decidim-pages && rake
|
344
280
|
- store_artifacts:
|
345
|
-
path: /
|
281
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
346
282
|
accountability:
|
347
283
|
<<: *defaults
|
348
284
|
steps:
|
349
285
|
- attach_workspace:
|
350
|
-
at: /
|
351
|
-
-
|
352
|
-
|
353
|
-
command: |
|
354
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
355
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
356
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
357
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
358
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
286
|
+
at: /app
|
287
|
+
- restore_cache:
|
288
|
+
<<: *dependency_cache
|
359
289
|
- run: export CODECOV_FLAG=accountability
|
290
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
360
291
|
- run:
|
361
|
-
name:
|
362
|
-
command:
|
363
|
-
cd spec/decidim_dummy_app/
|
364
|
-
bundle install
|
365
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
292
|
+
name: Wait for db
|
293
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
366
294
|
- run:
|
367
|
-
name:
|
368
|
-
command: cd /
|
295
|
+
name: Create test DB
|
296
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
369
297
|
- run:
|
370
298
|
name: Run accountability RSpec
|
371
|
-
command: cd
|
299
|
+
command: cd decidim-accountability && rake
|
372
300
|
- store_artifacts:
|
373
|
-
path: /
|
301
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
374
302
|
budgets:
|
375
303
|
<<: *defaults
|
376
304
|
steps:
|
377
305
|
- attach_workspace:
|
378
|
-
at: /
|
379
|
-
-
|
380
|
-
|
381
|
-
command: |
|
382
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
383
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
384
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
385
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
386
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
306
|
+
at: /app
|
307
|
+
- restore_cache:
|
308
|
+
<<: *dependency_cache
|
387
309
|
- run: export CODECOV_FLAG=budgets
|
310
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
388
311
|
- run:
|
389
|
-
name:
|
390
|
-
command:
|
391
|
-
cd spec/decidim_dummy_app/
|
392
|
-
bundle install
|
393
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
312
|
+
name: Wait for db
|
313
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
394
314
|
- run:
|
395
|
-
name:
|
396
|
-
command: cd /
|
315
|
+
name: Create test DB
|
316
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
397
317
|
- run:
|
398
318
|
name: Run budgets RSpec
|
399
|
-
command: cd
|
319
|
+
command: cd decidim-budgets && rake
|
400
320
|
- store_artifacts:
|
401
|
-
path: /
|
321
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
402
322
|
surveys:
|
403
323
|
<<: *defaults
|
404
324
|
steps:
|
405
325
|
- attach_workspace:
|
406
|
-
at: /
|
407
|
-
-
|
408
|
-
|
409
|
-
command: |
|
410
|
-
curl -OLk https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
411
|
-
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
|
412
|
-
mv phantomjs-2.1.1-linux-x86_64 /usr/local/share
|
413
|
-
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
|
414
|
-
rm phantomjs-2.1.1-linux-x86_64.tar.bz2
|
326
|
+
at: /app
|
327
|
+
- restore_cache:
|
328
|
+
<<: *dependency_cache
|
415
329
|
- run: export CODECOV_FLAG=surveys
|
330
|
+
- run: cd spec/decidim_dummy_app && bundle install
|
416
331
|
- run:
|
417
|
-
name:
|
418
|
-
command:
|
419
|
-
cd spec/decidim_dummy_app/
|
420
|
-
bundle install
|
421
|
-
RAILS_ENV=test bundle exec rake db:create db:schema:load
|
332
|
+
name: Wait for db
|
333
|
+
command: dockerize -wait tcp://localhost:5432 -timeout 1m
|
422
334
|
- run:
|
423
|
-
name:
|
424
|
-
command: cd /
|
335
|
+
name: Create test DB
|
336
|
+
command: cd spec/decidim_dummy_app && RAILS_ENV=test bundle exec rake db:create db:schema:load
|
425
337
|
- run:
|
426
338
|
name: Run surveys RSpec
|
427
|
-
command: cd
|
339
|
+
command: cd decidim-surveys && rake
|
428
340
|
- store_artifacts:
|
429
|
-
path: /
|
341
|
+
path: /app/spec/decidim_dummy_app/tmp/capybara
|
430
342
|
|
431
343
|
workflows:
|
432
344
|
version: 2
|
433
345
|
build_and_test:
|
434
346
|
jobs:
|
435
|
-
-
|
436
|
-
- main
|
437
|
-
requires:
|
438
|
-
- build
|
347
|
+
- build_test_app
|
348
|
+
- main
|
439
349
|
- core:
|
440
350
|
requires:
|
441
|
-
-
|
351
|
+
- build_test_app
|
442
352
|
- assemblies:
|
443
353
|
requires:
|
444
|
-
-
|
354
|
+
- build_test_app
|
445
355
|
- api:
|
446
356
|
requires:
|
447
|
-
-
|
357
|
+
- build_test_app
|
448
358
|
- processes:
|
449
359
|
requires:
|
450
|
-
-
|
360
|
+
- build_test_app
|
451
361
|
- admin:
|
452
362
|
requires:
|
453
|
-
-
|
363
|
+
- build_test_app
|
454
364
|
- system:
|
455
365
|
requires:
|
456
|
-
-
|
366
|
+
- build_test_app
|
457
367
|
- proposals:
|
458
368
|
requires:
|
459
|
-
-
|
369
|
+
- build_test_app
|
460
370
|
- comments:
|
461
371
|
requires:
|
462
|
-
-
|
372
|
+
- build_test_app
|
463
373
|
- meetings:
|
464
374
|
requires:
|
465
|
-
-
|
375
|
+
- build_test_app
|
466
376
|
- pages:
|
467
377
|
requires:
|
468
|
-
-
|
378
|
+
- build_test_app
|
469
379
|
- accountability:
|
470
380
|
requires:
|
471
|
-
-
|
381
|
+
- build_test_app
|
472
382
|
- budgets:
|
473
383
|
requires:
|
474
|
-
-
|
384
|
+
- build_test_app
|
475
385
|
- surveys:
|
476
386
|
requires:
|
477
|
-
-
|
387
|
+
- build_test_app
|