Skip to content

Commit

Permalink
Merge pull request #6 from klaxit/feature/circleci-2.0
Browse files Browse the repository at this point in the history
CircleCI 2.0 migration
  • Loading branch information
ccyrille committed Mar 8, 2019
2 parents 5816b7c + 7337d77 commit 6eb0dc3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2
jobs:
build:
docker:
# specify the desired version here
- image: circleci/ruby:2.5.3-node-browsers

steps:
- checkout

- run:
name: Install Bundler
command: gem install bundler --conservative

# Load installed gems from cache if possible, bundle install & clean,
# then save cache. Multiple caches to increase the chance of a cache hit.
# => Make sure to specify ruby version & architecture in cache keys
# (or conflicts on native gems may appear)
- restore_cache:
keys:
- v1-gem-cache-ruby-2.5-{{ arch }}-{{ checksum "sidekiq-worker-killer.gemspec" }}
- v1-gem-cache-ruby-2.5-{{ arch }}-

- run:
name: Install dependencies
command: bundle install && bundle clean

- save_cache:
key: v1-gem-cache-ruby-2.5-{{ arch }}-{{ checksum "sidekiq-worker-killer.gemspec" }}
paths:
- vendor/bundle

# Run tests!
- run:
name: Run tests
command: make test

0 comments on commit 6eb0dc3

Please sign in to comment.