-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Circle CI and Update Dependencies (#57)
- Loading branch information
Showing
16 changed files
with
100 additions
and
87 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,77 @@ | ||
version: 2.1 | ||
jobs: | ||
lint: | ||
docker: | ||
- image: salsify/ruby_ci:2.6.6 | ||
working_directory: ~/avro-builder | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-gems-ruby-2.6.6-{{ checksum "avro-builder.gemspec" }}-{{ checksum "Gemfile" }} | ||
- v2-gems-ruby-2.6.6- | ||
- run: | ||
name: Install Gems | ||
command: | | ||
if ! bundle check --path=vendor/bundle; then | ||
bundle install --path=vendor/bundle --jobs=4 --retry=3 | ||
bundle clean | ||
fi | ||
- save_cache: | ||
key: v2-gems-ruby-2.6.6-{{ checksum "avro-builder.gemspec" }}-{{ checksum "Gemfile" }} | ||
paths: | ||
- "vendor/bundle" | ||
- "gemfiles/vendor/bundle" | ||
- run: | ||
name: Run Rubocop | ||
command: bundle exec rubocop | ||
test: | ||
parameters: | ||
gemfile: | ||
type: string | ||
ruby-version: | ||
type: string | ||
docker: | ||
- image: salsify/ruby_ci:<< parameters.ruby-version >> | ||
environment: | ||
CIRCLE_TEST_REPORTS: "test-results" | ||
BUNDLE_GEMFILE: << parameters.gemfile >> | ||
working_directory: ~/avro-builder | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avro-builder.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }} | ||
- v2-gems-ruby-<< parameters.ruby-version >>- | ||
- run: | ||
name: Install Gems | ||
command: | | ||
if ! bundle check --path=vendor/bundle; then | ||
bundle install --path=vendor/bundle --jobs=4 --retry=3 | ||
bundle clean | ||
fi | ||
- save_cache: | ||
key: v2-gems-ruby-<< parameters.ruby-version >>-{{ checksum "avro-builder.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }} | ||
paths: | ||
- "vendor/bundle" | ||
- "gemfiles/vendor/bundle" | ||
- run: | ||
name: Run Tests | ||
command: | | ||
bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec | ||
- store_test_results: | ||
path: "test-results" | ||
workflows: | ||
build: | ||
jobs: | ||
- lint | ||
- test: | ||
matrix: | ||
parameters: | ||
gemfile: | ||
- "gemfiles/avro_1.9.gemfile" | ||
- "gemfiles/avro_1.10.gemfile" | ||
ruby-version: | ||
- "2.6.6" | ||
- "2.7.2" | ||
- "3.0.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5.8 | ||
2.6.6 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,26 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'avro-1.8.2' do | ||
gem 'avro', '1.8.2' | ||
appraise 'avro-1.9' do | ||
gem 'avro', '1.9.2' | ||
end | ||
|
||
appraise 'avro-1.9.0' do | ||
gem 'avro', '1.9.0' | ||
end | ||
|
||
appraise 'avro-1.9.1' do | ||
gem 'avro', '1.9.1' | ||
end | ||
|
||
appraise 'avro-1.10.0' do | ||
gem 'avro', '1.10.0' | ||
end | ||
|
||
appraise 'avro-patches-0.x' do | ||
gem 'avro', '1.8.2' | ||
gem 'avro-patches', '< 1.0.0' | ||
end | ||
|
||
appraise 'avro-patches-1.x' do | ||
gem 'avro-patches', '>= 1.0.0' | ||
appraise 'avro-1.10' do | ||
gem 'avro', '1.10.1' | ||
end |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
source "https://rubygems.org" | ||
|
||
gem "avro", "1.10.0" | ||
gem "avro", "1.10.1" | ||
|
||
gemspec path: "../" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
source "https://rubygems.org" | ||
|
||
gem "avro", "1.9.1" | ||
gem "avro", "1.9.2" | ||
|
||
gemspec path: "../" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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