Skip to content

Commit 9d61c0c

Browse files
committed
Add testing for other versions of ruby and pg
1 parent 74362ee commit 9d61c0c

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

.circleci/config.yml

+126
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
version: 2
22
jobs:
3+
test_ruby_2_4_6:
4+
parallelism: 2
5+
docker:
6+
- image: circleci/ruby:2.4.6
7+
environment:
8+
RAILS_ENV: test
9+
RACK_ENV: test
10+
POSTGRES_USER: root
11+
PGHOST: 127.0.0.1
12+
DATABASE_URL: postgres://[email protected]/circle_test
13+
QC_DATABASE_URL: postgres://[email protected]/circle_test
14+
QC_BENCHMARK: true
15+
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
16+
- image: circleci/postgres:9.6.6-alpine
17+
steps:
18+
- checkout
19+
- run:
20+
name: Install env dependencies
21+
command: |
22+
sudo apt-get update
23+
sudo apt-get install postgresql-client
24+
- restore_cache:
25+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
26+
}}
27+
- run:
28+
name: Install Ruby gems
29+
command: |
30+
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
31+
- save_cache:
32+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
33+
}}
34+
paths:
35+
- ~/project/vendor/bundle
36+
- run:
37+
name: Minitest
38+
command: |
39+
bundle exec rake
40+
- store_artifacts:
41+
path: test/reports/
42+
- store_test_results:
43+
path: test/reports/
344
test_ruby_2_5_4:
445
parallelism: 2
546
docker:
@@ -41,8 +82,93 @@ jobs:
4182
path: test/reports/
4283
- store_test_results:
4384
path: test/reports/
85+
test_ruby_2_6_3:
86+
parallelism: 2
87+
docker:
88+
- image: circleci/ruby:2.6.3
89+
environment:
90+
RAILS_ENV: test
91+
RACK_ENV: test
92+
POSTGRES_USER: root
93+
PGHOST: 127.0.0.1
94+
DATABASE_URL: postgres://[email protected]/circle_test
95+
QC_DATABASE_URL: postgres://[email protected]/circle_test
96+
QC_BENCHMARK: true
97+
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
98+
- image: circleci/postgres:9.6.6-alpine
99+
steps:
100+
- checkout
101+
- run:
102+
name: Install env dependencies
103+
command: |
104+
sudo apt-get update
105+
sudo apt-get install postgresql-client
106+
- restore_cache:
107+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
108+
}}
109+
- run:
110+
name: Install Ruby gems
111+
command: |
112+
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
113+
- save_cache:
114+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
115+
}}
116+
paths:
117+
- ~/project/vendor/bundle
118+
- run:
119+
name: Minitest
120+
command: |
121+
bundle exec rake
122+
- store_artifacts:
123+
path: test/reports/
124+
- store_test_results:
125+
path: test/reports/
126+
test_ruby_2_6_3_pg_latest:
127+
parallelism: 2
128+
docker:
129+
- image: circleci/ruby:2.6.3
130+
environment:
131+
RAILS_ENV: test
132+
RACK_ENV: test
133+
POSTGRES_USER: root
134+
PGHOST: 127.0.0.1
135+
DATABASE_URL: postgres://[email protected]/circle_test
136+
QC_DATABASE_URL: postgres://[email protected]/circle_test
137+
QC_BENCHMARK: true
138+
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
139+
- image: circleci/postgres:latest
140+
steps:
141+
- checkout
142+
- run:
143+
name: Install env dependencies
144+
command: |
145+
sudo apt-get update
146+
sudo apt-get install postgresql-client
147+
- restore_cache:
148+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
149+
}}
150+
- run:
151+
name: Install Ruby gems
152+
command: |
153+
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
154+
- save_cache:
155+
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
156+
}}
157+
paths:
158+
- ~/project/vendor/bundle
159+
- run:
160+
name: Minitest
161+
command: |
162+
bundle exec rake
163+
- store_artifacts:
164+
path: test/reports/
165+
- store_test_results:
166+
path: test/reports/
44167
workflows:
45168
version: 2
46169
test:
47170
jobs:
171+
- test_ruby_2_4_6
48172
- test_ruby_2_5_4
173+
- test_ruby_2_6_3
174+
- test_ruby_2_6_3_pg_latest

0 commit comments

Comments
 (0)