Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing for other versions of ruby and pg #305

Merged
merged 1 commit into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
version: 2
jobs:
test_ruby_2_4_6:
parallelism: 2
docker:
- image: circleci/ruby:2.4.6
environment:
RAILS_ENV: test
RACK_ENV: test
POSTGRES_USER: root
PGHOST: 127.0.0.1
DATABASE_URL: postgres://[email protected]/circle_test
QC_DATABASE_URL: postgres://[email protected]/circle_test
QC_BENCHMARK: true
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
- image: circleci/postgres:9.6.6-alpine
steps:
- checkout
- run:
name: Install env dependencies
command: |
sudo apt-get update
sudo apt-get install postgresql-client
- restore_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
- run:
name: Install Ruby gems
command: |
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
- save_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
paths:
- ~/project/vendor/bundle
- run:
name: Minitest
command: |
bundle exec rake
- store_artifacts:
path: test/reports/
- store_test_results:
path: test/reports/
test_ruby_2_5_4:
parallelism: 2
docker:
Expand Down Expand Up @@ -41,8 +82,93 @@ jobs:
path: test/reports/
- store_test_results:
path: test/reports/
test_ruby_2_6_3:
parallelism: 2
docker:
- image: circleci/ruby:2.6.3
environment:
RAILS_ENV: test
RACK_ENV: test
POSTGRES_USER: root
PGHOST: 127.0.0.1
DATABASE_URL: postgres://[email protected]/circle_test
QC_DATABASE_URL: postgres://[email protected]/circle_test
QC_BENCHMARK: true
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
- image: circleci/postgres:9.6.6-alpine
steps:
- checkout
- run:
name: Install env dependencies
command: |
sudo apt-get update
sudo apt-get install postgresql-client
- restore_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
- run:
name: Install Ruby gems
command: |
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
- save_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
paths:
- ~/project/vendor/bundle
- run:
name: Minitest
command: |
bundle exec rake
- store_artifacts:
path: test/reports/
- store_test_results:
path: test/reports/
test_ruby_2_6_3_pg_latest:
parallelism: 2
docker:
- image: circleci/ruby:2.6.3
environment:
RAILS_ENV: test
RACK_ENV: test
POSTGRES_USER: root
PGHOST: 127.0.0.1
DATABASE_URL: postgres://[email protected]/circle_test
QC_DATABASE_URL: postgres://[email protected]/circle_test
QC_BENCHMARK: true
QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
- image: circleci/postgres:latest
steps:
- checkout
- run:
name: Install env dependencies
command: |
sudo apt-get update
sudo apt-get install postgresql-client
- restore_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
- run:
name: Install Ruby gems
command: |
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
- save_cache:
key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
}}
paths:
- ~/project/vendor/bundle
- run:
name: Minitest
command: |
bundle exec rake
- store_artifacts:
path: test/reports/
- store_test_results:
path: test/reports/
workflows:
version: 2
test:
jobs:
- test_ruby_2_4_6
- test_ruby_2_5_4
- test_ruby_2_6_3
- test_ruby_2_6_3_pg_latest