Sha256: c28342885c1575c5f729b322c68d496a77dfeb2beab46fe3ea64f8e9ac146413

Contents?: true

Size: 1.67 KB

Versions: 17

Compression:

Stored size: 1.67 KB

Contents

version: 2
jobs:
  build:
    working_directory: ~/project
    docker:
      - image: circleci/ruby
        environment:
          BUNDLE_JOBS: 3
          BUNDLE_RETRY: 3
          BUNDLE_PATH: vendor/bundle
          EDITOR: vim
          RAILS_ENV: test
    steps:
      - checkout

      - run:
          name: Environment Setup
          command: |
            printf "%s\n" 'export CI_RUBY_VERSION=$(cat ".ruby-version" | tr -d "\n")' >> $BASH_ENV

      - type: cache-restore
        name: Ruby Restore
        key: ruby-{{checksum ".ruby-version"}}

      - run:
          name: Ruby Install
          command: |
            curl https://cache.ruby-lang.org/pub/ruby/${CI_RUBY_VERSION::-2}/ruby-$CI_RUBY_VERSION.tar.bz2 > ../ruby-$CI_RUBY_VERSION.tar.gz
            cd ..
            tar --extract --bzip2 --verbose --file ruby-$CI_RUBY_VERSION.tar.gz
            cd ruby-$CI_RUBY_VERSION
            ./configure
            make
            make update-gems
            make extract-gems
            sudo make install

      - type: cache-save
        name: Ruby Store
        key: ruby-{{checksum ".ruby-version"}}
        paths:
          - ../ruby-$CI_RUBY_VERSION

      - type: cache-restore
        name: Bundler Restore
        key: bundler-{{checksum "<%= config.dig(:gem, :name) %>.gemspec"}}

      - run:
          name: Bundler Install
          command: |
            gem update --system
            bundle install --path vendor/bundle

      - type: cache-save
        name: Bundler Store
        key: bundler-{{checksum "<%= config.dig(:gem, :name) %>.gemspec"}}
        paths:
          - vendor/bundle

      - run:
          name: Build
          command: |
            bundle exec rake

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gemsmith-14.10.1 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.10.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.9.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.8.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.7.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.6.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.5.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.4.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.3.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.2.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.1.3 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.1.2 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.1.1 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.1.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.0.2 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.0.1 lib/gemsmith/templates/%gem_name%/circle.yml.tt
gemsmith-14.0.0 lib/gemsmith/templates/%gem_name%/circle.yml.tt