Skip to content

Commit

Permalink
CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencejones committed Jul 4, 2019
1 parent 60a4749 commit ecd34d3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,42 @@
---
version: 2

references:
steps: &steps
- checkout

- type: cache-restore
key: prometheus-client-tracer-bundler-{{ checksum "prometheus-client-tracer.gemspec" }}

- run: gem install bundler -v 2.0.1
- run: bundle install --path vendor/bundle

- type: cache-save
key: prometheus-client-tracer-bundler-{{ checksum "prometheus-client-tracer.gemspec" }}
paths:
- vendor/bundle

- run: bundle exec rubocop
- run: bundle exec rspec

jobs:
build-ruby24:
docker:
- image: ruby:2.4
steps: *steps
build-ruby25:
docker:
- image: ruby:2.5
steps: *steps
build-ruby26:
docker:
- image: ruby:2.6
steps: *steps

workflows:
version: 2
tests:
jobs:
- build-ruby24
- build-ruby25
- build-ruby26

0 comments on commit ecd34d3

Please sign in to comment.