@@ -7,9 +7,11 @@ services:
77 dockerfile : ./ci/Dockerfile.test_5_2_ruby_2_6
88 environment :
99 RAILS_ENV : test
10+ volumes :
11+ - " ../ci/artifacts:/app/ci/artifacts"
1012 links :
1113 - " postgres_test_5_2_ruby_2_6:postgres_test"
12- command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/Gemfile.lock && cp yarn.lock ./ci/yarn.lock"
14+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/artifacts/ Gemfile.lock && cp yarn.lock ./ci/artifacts /yarn.lock"
1315 user : ${CURRENT_UID}
1416
1517 test_6_0_ruby_2_6 :
@@ -18,9 +20,11 @@ services:
1820 dockerfile : ./ci/Dockerfile.test_6_0_ruby_2_6
1921 environment :
2022 RAILS_ENV : test
23+ volumes :
24+ - " ../ci/artifacts:/app/ci/artifacts"
2125 links :
2226 - " postgres_test_6_0_ruby_2_6:postgres_test"
23- command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/Gemfile.lock && cp yarn.lock ./ci/yarn.lock"
27+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/artifacts/ Gemfile.lock && cp yarn.lock ./ci/artifacts /yarn.lock"
2428 user : ${CURRENT_UID}
2529
2630 test_6_1_ruby_2_7 :
@@ -29,9 +33,11 @@ services:
2933 dockerfile : ./ci/Dockerfile.test_6_1_ruby_2_7
3034 environment :
3135 RAILS_ENV : test
36+ volumes :
37+ - " ../ci/artifacts:/app/ci/artifacts"
3238 links :
3339 - " postgres_test_6_1_ruby_2_7:postgres_test"
34- command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/Gemfile.lock && cp yarn.lock ./ci/yarn.lock"
40+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/artifacts/ Gemfile.lock && cp yarn.lock ./ci/artifacts /yarn.lock"
3541 user : ${CURRENT_UID}
3642
3743 test_6_1_ruby_3_0 :
@@ -40,9 +46,11 @@ services:
4046 dockerfile : ./ci/Dockerfile.test_6_1_ruby_3_0
4147 environment :
4248 RAILS_ENV : test
49+ volumes :
50+ - " ../ci/artifacts:/app/ci/artifacts"
4351 links :
4452 - " postgres_test_6_1_ruby_3_0:postgres_test"
45- command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/Gemfile.lock && cp yarn.lock ./ci/yarn.lock"
53+ command : sh -c "bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rspec spec/test && cp Gemfile.lock ./ci/artifacts/ Gemfile.lock && cp yarn.lock ./ci/artifacts /yarn.lock"
4654 user : ${CURRENT_UID}
4755
4856 postgres_test_base : &postgres_test_base
0 commit comments