2021-11-18 17:41:37 +00:00
|
|
|
version: 2.1
|
2018-05-30 01:53:17 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-11-18 12:54:30 +00:00
|
|
|
ruby_2_6_x86_64:
|
2021-11-18 17:41:37 +00:00
|
|
|
docker:
|
|
|
|
- image: ruby:2.6
|
|
|
|
environment:
|
|
|
|
STEALTH_ENV: test
|
2018-05-30 01:53:17 +00:00
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: |
|
2021-11-18 12:45:26 +00:00
|
|
|
gem install bundler
|
2018-05-30 01:53:17 +00:00
|
|
|
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
|
|
|
|
|
|
# run tests!
|
|
|
|
- run:
|
|
|
|
name: run tests
|
|
|
|
command: |
|
|
|
|
mkdir /tmp/test-results
|
|
|
|
|
2021-11-18 12:51:51 +00:00
|
|
|
bundle exec rake full
|
2018-05-30 01:53:17 +00:00
|
|
|
|
|
|
|
# collect reports
|
|
|
|
- store_test_results:
|
|
|
|
path: /tmp/test-results
|
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/test-results
|
|
|
|
destination: test-results
|
2021-11-18 12:54:30 +00:00
|
|
|
ruby_2_7_x86_64:
|
2021-11-18 17:41:37 +00:00
|
|
|
docker:
|
|
|
|
- image: ruby:2.7
|
2021-11-18 12:54:30 +00:00
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: |
|
|
|
|
gem install bundler
|
|
|
|
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
|
|
|
2018-05-30 01:53:17 +00:00
|
|
|
# run tests!
|
|
|
|
- run:
|
|
|
|
name: run tests
|
|
|
|
command: |
|
|
|
|
mkdir /tmp/test-results
|
|
|
|
|
2021-11-18 12:51:51 +00:00
|
|
|
bundle exec rake full
|
2018-05-30 01:53:17 +00:00
|
|
|
|
|
|
|
# collect reports
|
|
|
|
- store_test_results:
|
|
|
|
path: /tmp/test-results
|
|
|
|
- store_artifacts:
|
|
|
|
path: /tmp/test-results
|
|
|
|
destination: test-results
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2021-11-18 12:54:30 +00:00
|
|
|
- ruby_2_6_x86_64
|
|
|
|
- ruby_2_7_x86_64
|