Sha256: 35fb3f8be003b84a3a78d25b95ec8f85d1b45c3494e0fed6d92be319cda83da2

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

version: 2.0
jobs:
  build:
    docker:
      - image: circleci/ruby:__ruby_version__-stretch-node-browsers
        environment:
          RAILS_ENV: test
      - image: circleci/postgres:9.6.5
    steps:
      - checkout

      # Restore bundle cache
      - restore_cache:
          key: __application_name__-{{ checksum "Gemfile.lock" }}

      # cmake is required by Rugged, a dependency of Pronto
      - run:
          name: Install cmake
          command: sudo apt-get -y -qq update && sudo apt-get -y -qq install cmake

      # Bundle install dependencies
      - run:
          name: Install dependencies
          command: bundle install --path vendor/bundle

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

      # Database setup
      - run:
          name: Create database
          command: bundle exec rake db:create
      - run:
          name: Load database schema
          command: bundle exec rake db:schema:load

      # Tests
      - run:
          name: RSpec
          command: bundle exec rspec

      # Security analysis
      - run:
          name: Bundler Audit
          command: bundle exec bundle-audit update && bundle exec bundle-audit check
      - run:
          name: Brakeman
          command: ./script/brakeman

      # Pronto
      - run:
          name: Pronto
          command: ./script/ci_pronto

      # Save Brakeman
      - store_artifacts:
          path: tmp/brakeman.html
          destination: security/brakeman.html

      # Save Coverage Analysis
      - store_artifacts:
          path: coverage
          destination: coverage

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gnarails-1.0.0 templates/.circleci/config.yml
gnarails-0.9.3 templates/.circleci/config.yml
gnarails-0.9.2 templates/.circleci/config.yml
gnarails-0.9.1 templates/.circleci/config.yml
gnarails-0.9.0 templates/.circleci/config.yml