Sha256: 026245ea94cbe7929d8c93e3ca859c18e2fb3bb2bac44d6827941e1d87aab67a

Contents?: true

Size: 1.42 KB

Versions: 3

Compression:

Stored size: 1.42 KB

Contents

---
version: v1.0
name: Commit Format
agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804
auto_cancel:
  running:
    when: branch != 'main' AND branch != 'develop'
global_job_config:
  env_vars:
  - name: _BUNDLER_CACHE
    value: v1
  prologue:
    commands:
      - checkout
      - |
        if [ -n "$RUBY_VERSION" ]; then
          sem-version ruby $RUBY_VERSION
          cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum commit_format.gemspec)-$(checksum Gemfile)
          bundle install --jobs=3 --retry=3
          cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum commit_format.gemspec)-$(checksum Gemfile) vendor/.bundle
        else
          echo Skipping Ruby install
        fi
blocks:
- name: Test
  dependencies: []
  task:
    prologue:
      commands:
        - "git config --global user.email 'test@example.com'"
        - "git config --global user.name 'John Doe'"
        - "git config --global init.defaultBranch main"
    jobs:
    - name: Test
      matrix:
        - env_var: RUBY_VERSION
          values:
            - 3.1.0
            - 3.0.3
            - 2.7.5
      commands:
        - bundle exec rspec
- name: Linters
  dependencies: []
  task:
    jobs:
    - name: Ruby Lint (RuboCop)
      env_vars:
        - name: RUBY_VERSION
          value: 3.1.0
      commands:
        - bundle exec rubocop
    - name: Git Lint (Lintje)
      commands:
        - script/lint_git

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commit_format-0.2.1 .semaphore/semaphore.yml
commit_format-0.2.0 .semaphore/semaphore.yml
commit_format-0.1.0 .semaphore/semaphore.yml