Sha256: 8e4b842bdc7141c0bac51f2a16a26d0a33f3577c6133999ee78e1a132bac7f98

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

version: "v1.0"
name: <%= project_name %>
agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804
auto_cancel:
  running:
    when: "true"

blocks:
  - name: cache
    execution_time_limit:
      minutes: 10
    dependencies: []
    task:
      secrets:
        - name: <%= project_name %>
      jobs:
        - name: cache
          commands:
            - checkout
            - cache restore
            - bundle install --deployment -j 4 --path vendor/bundle
            - nvm install
            - bin/yarn install --cache-folder ~/.cache/yarn
            - cache store
  - name: tests
    execution_time_limit:
      minutes: 10
    dependencies: ['cache']
    task:
      secrets:
        - name: <%= project_name %>
      env_vars:
        - name: DATABASE_URL
          value: postgresql://postgres@localhost/test?encoding=utf8
        - name: RAILS_ENV
          value: test
      prologue:
        commands:
          - checkout
          - cache restore
          - bundle install --deployment --path vendor/bundle
          - sem-service start postgres
          - bundle exec rails db:create db:schema:load
      jobs:
        - name: tests
          commands:
            - bin/check
promotions:
  - name: develop
    pipeline_file: develop-deploy.yml
    auto_promote:
      when: "result = 'passed' and branch = 'develop'"
  - name: master
    pipeline_file: master-deploy.yml
    auto_promote:
      when: "result = 'passed' and branch = 'master'"
  - name: testing
    pipeline_file: testing-deploy.yml
    auto_promote:
      when: "result = 'passed' and branch = 'testing'"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renuo-cli-1.7.0 lib/renuo/cli/app/templates/semaphore.yml.erb