Sha256: d5792ce6dac144bdca3b1baa9725f64389401e8ffc6954e35c3e1c6cabaac1b3

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

version: 2
jobs:
  test-job:
    working_directory: ~/jpmobile
    docker:
      - image: circleci/ruby:2.5-node-browsers
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          RAILS_ENV: test
    steps:
      - checkout

      # Install dependent packages
      - run:
          name: Install dependent packages
          command: sudo apt-get install -y cmake qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x

      # 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

3 entries across 3 versions & 1 rubygems

Version Path
jpmobile-5.2.5 .circleci/config.yml
jpmobile-5.2.4 .circleci/config.yml
jpmobile-5.2.3 .circleci/config.yml