Sha256: 8f670a9269bd00272d8f479ba6980580d505f4750073b8f0048514ba2a1d81e6

Contents?: true

Size: 1.99 KB

Versions: 14

Compression:

Stored size: 1.99 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 configuration.build_simple_cov %>
      - store_artifacts:
          name: SimpleCov Archive
          path: ~/project/coverage
          destination: coverage
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hanamismith-0.38.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.37.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.34.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.33.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.32.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.31.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.30.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.29.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.28.1 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.28.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.27.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.26.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.25.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
hanamismith-0.24.0 lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb