Sha256: 3f691584d731c7bfc2cdd7b9ed41ee95dd43a83af59efd587239e87dac38621d

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

module CircleCI
  module CoverageReporter
    # Encapsulate a CircleCI build
    Build = Struct.new(:vcs_revision, :build_number) do
      # @param revision [String]
      # @return [Boolean]
      def match?(revision)
        vcs_revision.start_with?(revision)
      end

      # @return [Array<Artifact>]
      def artifacts
        @artifacts ||= CoverageReporter.client.artifacts(build_number)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
circleci-coverage_reporter-0.5.0 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.4.0 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.3.1 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.3.0 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.2.0 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.1.3 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.1.2 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.1.1 lib/circleci/coverage_reporter/build.rb
circleci-coverage_reporter-0.1.0 lib/circleci/coverage_reporter/build.rb