Skip to content

Commit

Permalink
Merge pull request #76 from jrgriffiniii/issues-75-jrgriffiniii-circleci
Browse files Browse the repository at this point in the history
Integrates CircleCI for continuous integration and automated testing
  • Loading branch information
tpendragon committed May 8, 2019
2 parents 910ff0e + b576330 commit aee1152
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 10 deletions.
72 changes: 72 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
version: 2.1
orbs:
samvera: samvera/circleci-orb@0
jobs:
bundle:
parameters:
ruby_version:
type: string
default: 2.5.5
bundler_version:
type: string
default: 1.17.3
rails_version:
type: string
default: '5.2.2'
executor:
name: 'samvera/ruby'
ruby_version: << parameters.ruby_version >>
environment:
RAILS_VERSION: << parameters.rails_version >>
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
steps:
- samvera/cached_checkout
- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: om
- persist_to_workspace:
root: ~/
paths:
- project/*
- project/**/*
test:
parameters:
ruby_version:
type: string
default: 2.5.5
bundler_version:
type: string
default: 1.17.3
executor:
name: 'samvera/ruby'
ruby_version: << parameters.ruby_version >>
environment:
COVERAGE: true
steps:
- attach_workspace:
at: ~/
- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: om
- samvera/parallel_rspec

workflows:
version: 2
ci:
jobs:
- bundle:
ruby_version: "2.5.5"
rails_version: "5.1.7"
- test:
name: "ruby2-5-5"
ruby_version: "2.5.5"
requires:
- bundle
- test:
name: "ruby2-6-2"
ruby_version: "2.6.2"
requires:
- bundle
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# om (Opinionated Metadata)

[![Version](https://badge.fury.io/rb/om.png)](http://badge.fury.io/rb/om)
[![Build Status](https://travis-ci.org/samvera/om.png?branch=master)](https://travis-ci.org/samvera/om)
[![CircleCI](https://circleci.com/gh/samvera/om.svg?style=svg)](https://circleci.com/gh/samvera/om)
[![Coverage Status](https://coveralls.io/repos/github/samvera/om/badge.svg?branch=master)](https://coveralls.io/github/samvera/om?branch=master)

Jump In: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
Expand Down
1 change: 1 addition & 0 deletions om.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "pry-byebug"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 3.8"
s.add_development_dependency "rspec_junit_formatter"
s.add_development_dependency "yard"

s.files = `git ls-files`.split("\n")
Expand Down

0 comments on commit aee1152

Please sign in to comment.