Sha256: d6241cbcaed2db401b9eea48a5d3eb45449d31a01e03bcf920ab12b09bfe728c

Contents?: true

Size: 999 Bytes

Versions: 8

Compression:

Stored size: 999 Bytes

Contents

# frozen_string_literal: true

%w[
  bundler/setup
].each(&method(:require))

require 'diffend/errors'
require 'diffend/config'
require 'diffend/shell'
require 'diffend/repository'
require 'diffend/integration_repository'

task :integration_suite do
  Diffend::Repository::SUPPORTED.each do |command, repositories|
    repositories.each do |repository_name|
      repository = Diffend::IntegrationRepository.new(command, repository_name)
      repository.repository.isolate do |path|
        start = Time.now.to_f

        repository.config?(path)

        Bundler.with_unbundled_env do
          repository.install_plugin(path)

          cmd = Diffend::Shell.call_in_path(path, "bundle #{command}")

          unless cmd[:exit_code].zero?
            puts "#{repository.full_name} FAILED"
            puts cmd[:stderr]
            exit 1
          end
        end

        took = Time.now.to_f - start

        puts "#{repository.full_name} OK, took #{took.round(1)}s"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
diffend-monitor-0.2.44 Rakefile
diffend-0.2.44 Rakefile
diffend-monitor-0.2.43 Rakefile
diffend-0.2.43 Rakefile
diffend-monitor-0.2.42 Rakefile
diffend-0.2.42 Rakefile
diffend-monitor-0.2.41 Rakefile
diffend-0.2.41 Rakefile