This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
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 #63 from NijiDigital/feature/circleci-2-migration
Migrate to CircleCI 2.0 Using workflows to test against both Ruby 2.0.0 & latest ruby
- Loading branch information
Showing
4 changed files
with
42 additions
and
5 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,38 @@ | ||
default_steps: &default_steps | ||
steps: | ||
- checkout | ||
- run: | ||
name: Which ruby? | ||
command: ruby -v | ||
- run: | ||
name: Which bundler? | ||
command: bundle -v | ||
- run: | ||
name: Bundle Install | ||
command: bundle check || bundle install | ||
- run: | ||
name: Launch tests | ||
command: bundle exec rspec | ||
- run: | ||
name: Execute Rubocop | ||
command: bundle exec rubocop | ||
- run: | ||
name: Check PR format | ||
command: bundle exec rake pr:check | ||
|
||
version: 2 | ||
jobs: | ||
build_old_ruby: | ||
docker: | ||
- image: drecom/ubuntu-ruby:2.0.0-p648 | ||
<<: *default_steps | ||
build_latest_ruby: | ||
docker: | ||
- image: circleci/ruby:latest | ||
<<: *default_steps | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build_old_ruby | ||
- build_latest_ruby |
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
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
This file was deleted.
Oops, something went wrong.