71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
version: 2.1
|
|
|
|
jobs:
|
|
ruby_2_6_x86_64:
|
|
docker:
|
|
- image: ruby:2.6
|
|
environment:
|
|
STEALTH_ENV: test
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: install dependencies
|
|
command: |
|
|
gem install bundler
|
|
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
|
|
# run tests!
|
|
- run:
|
|
name: run tests
|
|
command: |
|
|
mkdir /tmp/test-results
|
|
|
|
bundle exec rake full
|
|
|
|
# collect reports
|
|
- store_test_results:
|
|
path: /tmp/test-results
|
|
- store_artifacts:
|
|
path: /tmp/test-results
|
|
destination: test-results
|
|
ruby_2_7_x86_64:
|
|
docker:
|
|
- image: ruby:2.7
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: install dependencies
|
|
command: |
|
|
gem install bundler
|
|
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
|
|
# run tests!
|
|
- run:
|
|
name: run tests
|
|
command: |
|
|
mkdir /tmp/test-results
|
|
|
|
bundle exec rake full
|
|
|
|
# collect reports
|
|
- store_test_results:
|
|
path: /tmp/test-results
|
|
- store_artifacts:
|
|
path: /tmp/test-results
|
|
destination: test-results
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- ruby_2_6_x86_64
|
|
- ruby_2_7_x86_64
|