.circleci/config.yml
version: 2.1
orbs:
ruby: circleci/ruby@1.1.2
jobs:
build:
docker:
# Specify the Ruby version you desire here
- image: 'cimg/ruby:2.7-node'
environment:
RAILS_ENV: test
CC_TEST_REPORTER_ID: 6e880368b57a21b67770e2439a5c84b06c9086c1195984acee60b80394b89384
OHANA_API_ENDPOINT: https://api.smc-connect.org
TWILIO_AUTH_TOKEN: token
executor: ruby/default
working_directory: ~/ohana-sms
steps:
- checkout
- ruby/install-deps
# - run:
# name: Install Code Climate Test Reporter
# command: |
# curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
# chmod +x ./cc-test-reporter
- run:
name: Run Tests
command: |
mkdir /tmp/test-results
bundle exec rake
# - run:
# name: Upload Test Results to Code Climate
# command: |
# ./cc-test-reporter format-coverage -t simplecov $CIRCLE_ARTIFACTS/coverage/.resultset.json
# ./cc-test-reporter upload-coverage
# collect reports
- store_test_results:
path: /tmp/test-results
- store_artifacts:
path: /tmp/test-results
destination: test-results