azure pipelines [skip travis] [skip appveyor]

This commit is contained in:
Anthony Sottile 2019-03-10 13:42:05 -07:00
parent 8171e47eb2
commit 8bb94f0bd4
10 changed files with 33 additions and 95 deletions

View file

@ -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(

View file

@ -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