Sha256: d436faa8d99ba6bb68197c590e845da74a18cc9b8d0c4539388f4d7833e33535

Contents?: true

Size: 275 Bytes

Versions: 9

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

module Overcommit::Hook::PrePush
  # Runs `cargo test` before push if Rust files changed
  class CargoTest < Base
    def run
      result = execute(command)
      return :pass if result.success?

      [:fail, result.stdout]
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
overcommit-0.64.1 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.64.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.63.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.62.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.61.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.60.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.59.1 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-0.59.0 lib/overcommit/hook/pre_push/cargo_test.rb
overcommit-jeygeethanmedia-0.58.0 lib/overcommit/hook/pre_push/cargo_test.rb