Sha256: 378a57dae40f25df2d17936ce0df5cec6028999b2f14a50fd9c3a67b572b8011
Contents?: true
Size: 749 Bytes
Versions: 6
Compression:
Stored size: 749 Bytes
Contents
# frozen_string_literal: true namespace :decidim do desc "Allows a decidim installation to check whether its locales are complete" task check_locales: :environment do FileUtils.remove_dir("tmp/decidim_repo", true) branch = ENV["TARGET_BRANCH"] || "master" status = system("git clone --depth=1 --single-branch --branch #{branch} https://github.com/decidim/decidim tmp/decidim_repo") return unless status Dir.chdir("tmp/decidim_repo") do env = { "ENFORCED_LOCALES" => I18n.available_locales.join(","), "SKIP_NORMALIZATION" => "true" } Bundler.with_original_env do system(env, "bundle install") system(env, "bundle exec rspec spec/i18n_spec.rb") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems