mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Simplify Windows platform identification
Platforms map available at https://github.com/bundler/bundler/blob/master/lib/bundler/dependency.rb
This commit is contained in:
parent
3f0794bd39
commit
bd80c1942b
23
Gemfile
23
Gemfile
@ -29,19 +29,20 @@ else
|
|||||||
gem 'actionpack', gem_version
|
gem 'actionpack', gem_version
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
# https://github.com/bundler/bundler/blob/89a8778c19269561926cea172acdcda241d26d23/lib/bundler/dependency.rb#L30-L54
|
||||||
gem 'activerecord'
|
@windows_platforms = [:mswin, :mingw, :x64_mingw]
|
||||||
gem 'sqlite3', platform: [:ruby, :mingw, :x64_mingw, :mswin]
|
|
||||||
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
|
||||||
gem 'codeclimate-test-reporter', require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
group :test, :development do
|
|
||||||
gem 'simplecov', '~> 0.10', require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
gem 'tzinfo-data', platforms: (@windows_platforms + [:jruby])
|
||||||
|
|
||||||
|
group :test do
|
||||||
|
gem 'activerecord'
|
||||||
|
gem 'sqlite3', platform: (@windows_platforms + [:ruby])
|
||||||
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
||||||
|
|
||||||
|
gem 'codeclimate-test-reporter', require: false
|
||||||
|
gem 'simplecov', '~> 0.10', require: false, group: :development
|
||||||
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'rubocop', '~> 0.34.0', require: false
|
gem 'rubocop', '~> 0.34.0', require: false
|
||||||
|
|||||||
@ -17,6 +17,7 @@ install:
|
|||||||
- gem --version
|
- gem --version
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- bundler --version
|
- bundler --version
|
||||||
|
- bundle platform
|
||||||
- bundle install --retry=3
|
- bundle install --retry=3
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user