Skip to content

Commit

Permalink
Run for test suite in CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Oct 12, 2018
1 parent 70d9fa1 commit 91d51dd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
version: 2
workflows:
version: 2
tests:
jobs:
- ruby-2.3-tests
- ruby-2.4-tests
- ruby-2.5-tests
- ruby-2.6-tests
audit:
jobs:
- audit
jobs:
build:
ruby-2.3-tests: &test-template
docker:
- image: circleci/ruby:2.5.1-node-browsers
- image: circleci/ruby:2.3-node-browsers
steps:
- checkout
- run:
Expand All @@ -12,5 +23,36 @@ jobs:
name: Bundle Install
command: bundle check || bundle install
- run:
name: Run rspec in parallel
name: Run rspec
command: |
bundle exec rspec --format RspecJunitFormatter \
--out test_results/rspec.xml \
--format progress
- store_test_results:
path: test_results
- run:
name: Run rubocop
command: bundle exec rubocop
ruby-2.4-tests:
<<: *test-template
docker:
- image: circleci/ruby:2.4-node-browsers
ruby-2.5-tests:
<<: *test-template
docker:
- image: circleci/ruby:2.5-node-browsers
ruby-2.6-tests:
<<: *test-template
docker:
- image: circleci/ruby:2.6-node-browsers
audit:
docker:
- image: circleci/ruby:2.5-node-browsers
steps:
- checkout
- run:
name: Bundle Install
command: bundle check || bundle install
- run:
name: Run bundle audit
command: bundle audit check --update
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/doc/
/pkg/
/spec/reports/
/test_results/
/tmp/

# rspec failure tracking
Expand Down
1 change: 1 addition & 0 deletions bunnyrun.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'guard-rubocop'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec_junit_formatter'
spec.add_development_dependency 'rubocop', '~> 0.51'
spec.add_development_dependency 'rubocop-rspec', '~> 1.24'

Expand Down

0 comments on commit 91d51dd

Please sign in to comment.