-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from klaxit/feature/circleci-2.0
CircleCI 2.0 migration
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |