Sha256: 20fcf6939eae230b1ed3da952c156d683c6ab4c34ff04280fda23940cc175398

Contents?: true

Size: 1.98 KB

Versions: 9

Compression:

Stored size: 1.98 KB

Contents

version: 2.1
jobs:
  build:
    working_directory: ~/project
    docker:
      - image: bkuhlmann/alpine-ruby:latest
        environment:
          HANAMI_ENV: test
          DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
      - image: postgres:latest
        environment:
          POSTGRES_PASSWORD: postgres
    steps:
      - run:
          name: Chromium Install
          command: apk add gcompat glib nss libxcb libgcc chromium

      - run:
          name: Chromium Start
          command: |
            export DISPLAY=:99
            chromedriver --url-base=/wd/hub &

      - run:
          name: Node Install
          command: apk add nodejs npm

      - checkout

      - restore_cache:
          name: Gems Restore
          keys:
            - gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}}
            - gem-cache-

      - run:
          name: Gems Install
          command: |
            gem update --system
            bundle config set path "vendor/bundle"
            bundle install

      - save_cache:
          name: Gems Store
          key: gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}}
          paths:
            - vendor/bundle

      - restore_cache:
          name: Packages Restore
          keys:
            - package-cache-{{.Branch}}-{{checksum "package.json"}}
            - package-cache-

      - run:
          name: Packages Install
          command: npm install

      - save_cache:
          name: Packages Store
          key: package-cache-{{.Branch}}-{{checksum "package.json"}}
          paths:
            - node_modules

      - run:
          name: Database Setup
          command: |
            bin/hanami db create
            bin/hanami db migrate

      - run:
          name: Build
          command: |
            bin/hanami assets compile
            bundle exec rake

<% if settings.build_simple_cov %>
      - store_artifacts:
          name: SimpleCov Archive
          path: ~/project/coverage
          destination: coverage
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hanamismith-0.47.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.46.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.45.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.44.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.43.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.42.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.41.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.40.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.39.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb