Sha256: c60a739d8206be3bde7f74ceedf52e751c2503dd638331ec7c97bf7c26f72689

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

module PreCommit
  class CiCheck
    CI_TASK_NAME = 'pre_commit:ci'

    def self.call(_)
      return if system("rake #{CI_TASK_NAME} --silent")
      "your test suite has failed, for the full output run `#{CI_TASK_NAME}`"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pre-commit-0.11.0 lib/pre-commit/checks/ci_check.rb
pre-commit-0.10.0 lib/pre-commit/checks/ci_check.rb
pre-commit-0.9.2 lib/pre-commit/checks/ci_check.rb
pre-commit-0.9.1 lib/pre-commit/checks/ci_check.rb
pre-commit-0.9.0 lib/pre-commit/checks/ci_check.rb