mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
azure pipelines [skip travis] [skip appveyor]
This commit is contained in:
parent
8171e47eb2
commit
8bb94f0bd4
10 changed files with 33 additions and 95 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import subprocess
|
||||
import distutils.spawn
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -67,8 +67,7 @@ def test_integration(temp_git_dir):
|
|||
|
||||
|
||||
def has_gitlfs():
|
||||
output = cmd_output('git', 'lfs', retcode=None, stderr=subprocess.STDOUT)
|
||||
return 'git lfs status' in output
|
||||
return distutils.spawn.find_executable('git-lfs') is not None
|
||||
|
||||
|
||||
xfailif_no_gitlfs = pytest.mark.xfail(
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ def f1_is_a_conflict_file(tmpdir):
|
|||
cmd_output('git', 'init', '--', repo1.strpath)
|
||||
with repo1.as_cwd():
|
||||
repo1_f1.ensure()
|
||||
cmd_output('git', 'add', '--', repo1_f1.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'commit1')
|
||||
|
||||
cmd_output('git', 'clone', repo1.strpath, repo2.strpath)
|
||||
|
|
@ -77,7 +77,7 @@ def repository_pending_merge(tmpdir):
|
|||
cmd_output('git', 'init', repo1.strpath)
|
||||
with repo1.as_cwd():
|
||||
repo1_f1.ensure()
|
||||
cmd_output('git', 'add', '--', repo1_f1.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'commit1')
|
||||
|
||||
cmd_output('git', 'clone', repo1.strpath, repo2.strpath)
|
||||
|
|
@ -90,7 +90,7 @@ def repository_pending_merge(tmpdir):
|
|||
# Commit in clone and pull without committing
|
||||
with repo2.as_cwd():
|
||||
repo2_f2.write('child\n')
|
||||
cmd_output('git', 'add', '--', repo2_f2.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'clone commit2')
|
||||
cmd_output('git', 'pull', '--no-commit', '--no-rebase')
|
||||
# We should end up in a pending merge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue