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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b7d00951241d8a6e2fdb2b113589811ded9fd4164e77ec2e2b5ee3ca4d8da32
4
- data.tar.gz: c4eb926ba9d43c5a5cca63b9289ed9ce9f8c2394d87b29663dcf66fa929c136c
3
+ metadata.gz: d308873f50016a661614f19b67932a9c21ce683e19d5471bfa3e4c63e9ceec95
4
+ data.tar.gz: ecad70ad991d8e7fd0b68b53a4a6f11062a2cb660c6db2b5f299267debf7a913
5
5
  SHA512:
6
- metadata.gz: 45bf5195a0ab9a10eec5ad99b6d8fdcce2605324becf585a735bf4aecbd630492f65348d9c4dc5ecad99d3e2cb209c563e4fd9e303e8d8790e084ada7ff9340d
7
- data.tar.gz: bdb4943eb9f7772df9fe14f5aac1c2e369b3ee717d50c196dc536766d1c9de6c9179343d603de7cb00ec9ceb101acd3535a917d6eeeddb5f51e27febb21ee9bc
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: codegram/decidim:0.7.2
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: /code
13
+ working_directory: /app
14
+
15
+ dependency_cache: &dependency_cache
16
+ keys:
17
+ - dependencies-{{ .Branch }}
18
+ - dependencies-master
13
19
 
14
20
  jobs:
15
- build:
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: Install app dependencies
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: /code
63
+ at: /app
64
+ - checkout
65
+ - restore_cache:
66
+ <<: *dependency_cache
44
67
  - run:
45
- name: Install PhantomJS
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: Create test DB
54
- command: |
55
- cd spec/decidim_dummy_app/
56
- bundle install
57
- RAILS_ENV=test bundle exec rake db:create db:schema:load
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: cd /code && time npm run lint
78
+ command: npm run lint
61
79
  - run:
62
80
  name: Run main folder RSpec
63
- command: cd /code && time bundle exec rspec
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: /code
71
- - run:
72
- name: Install PhantomJS
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: Create test DB
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: Run core JS tests
88
- command: cd /code && time npm test -- decidim-core
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 /code/decidim-core && time bundle exec rake
99
+ command: cd decidim-core && rake
92
100
  - store_artifacts:
93
- path: /code/spec/decidim_dummy_app/tmp/capybara
101
+ path: /app/spec/decidim_dummy_app/tmp/capybara
94
102
  assemblies:
95
103
  <<: *defaults
96
104
  steps:
97
105
  - attach_workspace:
98
- at: /code
99
- - run:
100
- name: Install PhantomJS
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: Create test DB
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: Run assemblies JS tests
116
- command: cd /code && time npm test -- decidim-assemblies
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 /code/decidim-assemblies && time bundle exec rake
119
+ command: cd decidim-assemblies && rake
120
120
  - store_artifacts:
121
- path: /code/spec/decidim_dummy_app/tmp/capybara
121
+ path: /app/spec/decidim_dummy_app/tmp/capybara
122
122
  api:
123
123
  <<: *defaults
124
124
  steps:
125
125
  - attach_workspace:
126
- at: /code
127
- - run:
128
- name: Install PhantomJS
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: Create test DB
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: Run api JS tests
144
- command: cd /code && time npm test -- decidim-api
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 /code/decidim-api && time bundle exec rake
139
+ command: cd decidim-api && rake
148
140
  - store_artifacts:
149
- path: /code/spec/decidim_dummy_app/tmp/capybara
141
+ path: /app/spec/decidim_dummy_app/tmp/capybara
150
142
  processes:
151
143
  <<: *defaults
152
144
  steps:
153
145
  - attach_workspace:
154
- at: /code
155
- - run:
156
- name: Install PhantomJS
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: Create test DB
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: Run participatory_processes JS tests
172
- command: cd /code && time npm test -- decidim-participatory_processes
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 /code/decidim-participatory_processes && time bundle exec rake
159
+ command: cd decidim-participatory_processes && rake
176
160
  - store_artifacts:
177
- path: /code/spec/decidim_dummy_app/tmp/capybara
161
+ path: /app/spec/decidim_dummy_app/tmp/capybara
178
162
  admin:
179
163
  <<: *defaults
180
164
  steps:
181
165
  - attach_workspace:
182
- at: /code
183
- - run:
184
- name: Install PhantomJS
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: Create test DB
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: Run admin JS tests
200
- command: cd /code && time npm test -- decidim-admin
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 /code/decidim-admin && time bundle exec rake
179
+ command: cd decidim-admin && rake
204
180
  - store_artifacts:
205
- path: /code/spec/decidim_dummy_app/tmp/capybara
181
+ path: /app/spec/decidim_dummy_app/tmp/capybara
206
182
  system:
207
183
  <<: *defaults
208
184
  steps:
209
185
  - attach_workspace:
210
- at: /code
211
- - run:
212
- name: Install PhantomJS
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: Create test DB
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: Run system JS tests
228
- command: cd /code && time npm test -- decidim-system
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 /code/decidim-system && time bundle exec rake
199
+ command: cd decidim-system && rake
232
200
  - store_artifacts:
233
- path: /code/spec/decidim_dummy_app/tmp/capybara
201
+ path: /app/spec/decidim_dummy_app/tmp/capybara
234
202
  proposals:
235
203
  <<: *defaults
236
204
  steps:
237
205
  - attach_workspace:
238
- at: /code
239
- - run:
240
- name: Install PhantomJS
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: Create test DB
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: Run proposals JS tests
256
- command: cd /code && time npm test -- decidim-proposals
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 /code/decidim-proposals && time bundle exec rake
219
+ command: cd decidim-proposals && rake
260
220
  - store_artifacts:
261
- path: /code/spec/decidim_dummy_app/tmp/capybara
221
+ path: /app/spec/decidim_dummy_app/tmp/capybara
262
222
  comments:
263
223
  <<: *defaults
264
224
  steps:
265
225
  - attach_workspace:
266
- at: /code
267
- - run:
268
- name: Install PhantomJS
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: Create test DB
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: Run comments JS tests
284
- command: cd /code && time npm test -- decidim-comments
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 /code/decidim-comments && time bundle exec rake
239
+ command: cd decidim-comments && rake
288
240
  - store_artifacts:
289
- path: /code/spec/decidim_dummy_app/tmp/capybara
241
+ path: /app/spec/decidim_dummy_app/tmp/capybara
290
242
  meetings:
291
243
  <<: *defaults
292
244
  steps:
293
245
  - attach_workspace:
294
- at: /code
295
- - run:
296
- name: Install PhantomJS
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: Create test DB
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: Run meetings JS tests
312
- command: cd /code && time npm test -- decidim-meetings
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 /code/decidim-meetings && time bundle exec rake
259
+ command: cd decidim-meetings && rake
316
260
  - store_artifacts:
317
- path: /code/spec/decidim_dummy_app/tmp/capybara
261
+ path: /app/spec/decidim_dummy_app/tmp/capybara
318
262
  pages:
319
263
  <<: *defaults
320
264
  steps:
321
265
  - attach_workspace:
322
- at: /code
323
- - run:
324
- name: Install PhantomJS
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: Create test DB
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: Run pages JS tests
340
- command: cd /code && time npm test -- decidim-pages
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 /code/decidim-pages && time bundle exec rake
279
+ command: cd decidim-pages && rake
344
280
  - store_artifacts:
345
- path: /code/spec/decidim_dummy_app/tmp/capybara
281
+ path: /app/spec/decidim_dummy_app/tmp/capybara
346
282
  accountability:
347
283
  <<: *defaults
348
284
  steps:
349
285
  - attach_workspace:
350
- at: /code
351
- - run:
352
- name: Install PhantomJS
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: Create test DB
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: Run accountability JS tests
368
- command: cd /code && time npm test -- decidim-accountability
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 /code/decidim-accountability && time bundle exec rake
299
+ command: cd decidim-accountability && rake
372
300
  - store_artifacts:
373
- path: /code/spec/decidim_dummy_app/tmp/capybara
301
+ path: /app/spec/decidim_dummy_app/tmp/capybara
374
302
  budgets:
375
303
  <<: *defaults
376
304
  steps:
377
305
  - attach_workspace:
378
- at: /code
379
- - run:
380
- name: Install PhantomJS
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: Create test DB
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: Run budgets JS tests
396
- command: cd /code && time npm test -- decidim-budgets
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 /code/decidim-budgets && time bundle exec rake
319
+ command: cd decidim-budgets && rake
400
320
  - store_artifacts:
401
- path: /code/spec/decidim_dummy_app/tmp/capybara
321
+ path: /app/spec/decidim_dummy_app/tmp/capybara
402
322
  surveys:
403
323
  <<: *defaults
404
324
  steps:
405
325
  - attach_workspace:
406
- at: /code
407
- - run:
408
- name: Install PhantomJS
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: Create test DB
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: Run surveys JS tests
424
- command: cd /code && time npm test -- decidim-surveys
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 /code/decidim-surveys && time bundle exec rake
339
+ command: cd decidim-surveys && rake
428
340
  - store_artifacts:
429
- path: /code/spec/decidim_dummy_app/tmp/capybara
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
- - build
436
- - main:
437
- requires:
438
- - build
347
+ - build_test_app
348
+ - main
439
349
  - core:
440
350
  requires:
441
- - build
351
+ - build_test_app
442
352
  - assemblies:
443
353
  requires:
444
- - build
354
+ - build_test_app
445
355
  - api:
446
356
  requires:
447
- - build
357
+ - build_test_app
448
358
  - processes:
449
359
  requires:
450
- - build
360
+ - build_test_app
451
361
  - admin:
452
362
  requires:
453
- - build
363
+ - build_test_app
454
364
  - system:
455
365
  requires:
456
- - build
366
+ - build_test_app
457
367
  - proposals:
458
368
  requires:
459
- - build
369
+ - build_test_app
460
370
  - comments:
461
371
  requires:
462
- - build
372
+ - build_test_app
463
373
  - meetings:
464
374
  requires:
465
- - build
375
+ - build_test_app
466
376
  - pages:
467
377
  requires:
468
- - build
378
+ - build_test_app
469
379
  - accountability:
470
380
  requires:
471
- - build
381
+ - build_test_app
472
382
  - budgets:
473
383
  requires:
474
- - build
384
+ - build_test_app
475
385
  - surveys:
476
386
  requires:
477
- - build
387
+ - build_test_app