Skip to content

Commit

Permalink
Update Semaphore configuration (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasoares authored Oct 11, 2019
1 parent fbd0be4 commit e9ae866
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: v1.0
name: Human Enum
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
containers:
- name: main
image: 'ruby:2.6.4'
blocks:
- name: Setup
task:
jobs:
- name: bundle
commands:
- bundle install -j 4 --path vendor/bundle
prologue:
commands:
- checkout
- cache restore
epilogue:
on_pass:
commands:
- cache store
- name: Code scanning
task:
jobs:
- name: check style + security
commands:
- bundle exec rubocop
prologue:
commands:
- checkout
- cache restore
- bundle install -j 4 --path vendor/bundle
- name: Unit tests
task:
prologue:
commands:
- checkout
- cache restore
- bundle install -j 4 --path vendor/bundle
jobs:
- name: RSpec
commands:
- bundle exec rake spec

0 comments on commit e9ae866

Please sign in to comment.