Sha256: 4da97abea65f25185c5aa5b76e6d9bfb7efeb22356746a04b6db660fd7eadc70

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

version: 2.1
orbs:
  browser-tools: circleci/browser-tools@1.1
jobs:
  test-job:
    working_directory: ~/jpmobile
    docker:
      - image: cimg/ruby:3.0-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          RAILS_ENV: test
    steps:
      - browser-tools/install-browser-tools
      - checkout

      # Install dependent packages
      - run:
          name: Install dependent packages
          command: |
            sudo apt update
            sudo apt install -y cmake libsqlite3-dev

      # Which version of bundler?
      - run:
          name: Which bundler?
          command: bundle -v

      # Restore bundle cache
      - restore_cache:
          keys:
            - jpmobile-bundle-v1-{{ checksum "Gemfile.lock" }}

      - run:
          name: Bundle Install
          command: bundle check || bundle install --path vendor/bundler

      # Store bundle cache
      - save_cache:
          key: jpmobile-bundle-v1-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

      # rubocop
      - run:
          name: rubocop
          command: |
            bundle exec rubocop
          environment:
            BUNDLE_GEMFILE: ~/jpmobile/Gemfile

      # Run rspec in parallel
      - run:
          name: test
          command: |
            bundle exec rake test

          environment:
            BUNDLE_GEMFILE: ~/jpmobile/Gemfile
workflows:
  version: 2
  run-test:
    jobs:
      - test-job

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jpmobile-7.0.0 .circleci/config.yml