4 parameters: &default_parameters
7 default: 'spree-bundle-v10-ruby-{{ checksum ".ruby-version" }}-{{ .Branch }}'
10 default: 'spree-bundle-v10-ruby-{{ checksum ".ruby-version" }}'
13 default: 'spree-bundle-v10-ruby-{{ checksum ".ruby-version" }}-{{ .Branch }}'
22 environment: &environment
23 CIRCLE_TEST_REPORTS: /tmp/test-results
24 CIRCLE_ARTIFACTS: /tmp/test-artifacts
27 BUNDLE_PATH: ~/spree/vendor/bundle
28 RAILS_VERSION: << parameters.rails_version >>
29 DB: postgres # default value, this will speed up bundle install for all postgres builds
33 working_directory: ~/spree
35 - image: &ruby_image cimg/ruby:3.3.0-browsers
46 - << parameters.restore_cache_key_1 >>
47 - << parameters.restore_cache_key_2 >>
49 name: Allow executing given file
50 command: chmod +x << parameters.run_file_path >>
52 name: Run << parameters.run_file_path >> file
53 command: bash << parameters.run_file_path >>
55 condition: << parameters.save_cache_key >>
58 key: << parameters.save_cache_key >>
60 - ~/spree/vendor/bundle
62 condition: << parameters.store_artefacts >>
65 path: /tmp/test-artifacts
66 destination: test-artifacts
68 path: /tmp/failed_tests
69 destination: failed_tests
71 path: /tmp/test-results
72 destination: raw-test-output
74 path: /tmp/test-results
80 - image: cimg/postgres:16.2
82 POSTGRES_USER: postgres
93 - image: cimg/postgres:16.2
95 POSTGRES_USER: postgres
104 - image: cimg/postgres:16.2
106 POSTGRES_USER: postgres
115 - image: cimg/postgres:16.2
117 POSTGRES_USER: postgres
126 - image: cimg/postgres:16.2
128 POSTGRES_USER: postgres
131 PROJECTS: emails,sample
137 # <<: *default_parameters
139 # <<: *environment_mysql
141 # - image: *ruby_image
142 # - image: cimg/mysql:8.0
143 # command: [--default-authentication-plugin=mysql_native_password]
150 run_file_path: ./bin/bundle_ruby.sh
152 name: tests_rails_postgres_core
153 store_artefacts: true
154 run_file_path: ./bin/tests_database_ci.sh
158 name: tests_rails_postgres_api
159 store_artefacts: true
160 run_file_path: ./bin/tests_database_ci.sh
164 name: tests_rails_postgres_admin
165 store_artefacts: true
166 run_file_path: ./bin/tests_database_ci.sh
170 name: tests_rails_postgres_storefront
171 store_artefacts: true
172 run_file_path: ./bin/tests_database_ci.sh
176 name: tests_rails_postgres_other
177 store_artefacts: true
178 run_file_path: ./bin/tests_database_ci.sh
183 restore_cache_key_1: spree-brakeman-{{ .Branch }}
184 restore_cache_key_2: spree-brakeman
185 save_cache_key: spree-brakeman-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
186 run_file_path: ./bin/brakeman.sh
189 - tests_rails_postgres_core
190 - tests_rails_postgres_api
191 - tests_rails_postgres_admin
192 - tests_rails_postgres_storefront
193 - tests_rails_postgres_other