77 docker :
88 - image : circleci/ruby:2.6.6-node
99 environment :
10- DB_HOST : 127.0.0.1
11- PGHOST : 127.0.0.1
12- PGUSER : root
1310 RAILS_ENV : test
1411 - image : circleci/mysql:8.0.20
1512 command : [--default-authentication-plugin=mysql_native_password]
1613 environment :
17- MYSQL_ALLOW_EMPTY_PASSWORD : yes
1814 MYSQL_ROOT_HOST : ' %'
19- MYSQL_ROOT_PASSWORD : ' '
20- MYSQL_DATABASE : circle-test_test
21- MYSQL_USER : user
22- MYSQL_PASSWORD : ' '
2315 - image : circleci/postgres:9.6.15-alpine
2416 environment :
2517 POSTGRES_USER : root
26- POSTGRES_DB : circle-test_test
2718 executor : ruby/default
2819 steps :
2920 - checkout
@@ -38,24 +29,24 @@ jobs:
3829 - save_cache :
3930 key : gem-cache-{{ checksum "active_storage_db.gemspec" }}
4031 paths : vendor/bundle
41- # - run:
42- # name: Run PostgreSQL Specs
43- # command: |
44- # DB=postgresql bin/rails db:reset
45- # DB=postgresql bin/rspec \
46- # --profile 10 \
47- # --format RspecJunitFormatter \
48- # --out test_results/rspec .xml \
49- # --format progress \
50- # $(circleci tests glob "spec/**/*_spec.rb")
32+ - run :
33+ name : Run PostgreSQL Specs
34+ command : |
35+ DB=postgresql bin/rails db:reset
36+ DB=postgresql bin/rspec \
37+ --profile 10 \
38+ --format RspecJunitFormatter \
39+ --out test_results/rspec_postgresql .xml \
40+ --format progress \
41+ $(circleci tests glob "spec/**/*_spec.rb")
5142 - run :
5243 name : Run MySQL Specs
5344 command : |
5445 DB=mysql bin/rails db:reset
5546 DB=mysql bin/rspec \
5647 --profile 10 \
5748 --format RspecJunitFormatter \
58- --out test_results/rspec .xml \
49+ --out test_results/rspec_mysql .xml \
5950 --format progress \
6051 $(circleci tests glob "spec/**/*_spec.rb")
6152 - store_test_results :
0 commit comments