Sha256: 828b3d9deb1cd63630b736b5e38b135c4bc1d75d3593af43ae99bf40ea95e6b5

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

require 'yaml'

ruby_versions = %w(2.5.3 2.6.1)

[
  { rails: '4.2.11', activeadmin: '1.2.1', reform: '2.2.4', 'reform-rails': '0.1.7' },
  { rails: '5.2.2', activeadmin: { github: 'activeadmin', ref: 'd95a9a853' }, reform: '2.2.4', 'reform-rails': '0.1.7', bootsnap: '1.3.1' },
  { rails: '5.2.2', activeadmin: { github: 'activeadmin', ref: 'd95a9a853' }, reform: '2.3.0.rc1', 'reform-rails': '0.2.0.rc2', bootsnap: '1.3.1' },
].each do |deps|
  appraise deps.map { |name, requirement| "#{name}-#{requirement}" }.join('_') do
    deps.each { |name, requirement| gem name, requirement }
  end
end

gemfiles = Dir.glob('gemfiles/*.gemfile')
travis = ::YAML.dump(
  'language' => 'ruby',
  'rvm' => ruby_versions,
  'before_script' => [
    './bin/setup',
   ],
  'script'  => [
    'bundle exec rake spec',
    'bundle exec rubocop --fail-level C'
  ],
  'gemfile' => gemfiles,
  'addons' => {
    'code_climate' => {
      'repo_token' => 'c326cca5984d0e32d2c6b5d9b985756ee9312f63fc6a9480fc9cfa55c454d68a'
    }
  }


)

::File.open('.travis.yml', 'w+') do |file|
  file.write(travis)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin-reform-1.0.0 Appraisals