From b0883d9b8ff2b0b2d633badc72940479a537f9ee Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Fri, 7 Jul 2017 21:28:41 +0300 Subject: [PATCH 1/2] .appveyor.yml: Install pygit2 from compiled wheels (#146) --- .appveyor.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 4ce9836..f456c9d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -23,22 +23,7 @@ environment: PYTHON: 'C:\Python36-x64\python.exe' init: - - cmd: '%PYTHON% -m pip install -U nose wheel' - -build_script: - - cmd: | - set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\build\libgit2 - git clone --depth=1 -b maint/v0.25 https://github.com/libgit2/libgit2.git libgit2 - mkdir build - - cd build - cmake -DSTDCALL=OFF -DBUILD_CLAR=OFF -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" ../libgit2 -G "%GENERATOR%" - cmake --build . --config Release --target install - cd .. - - IF "%GENERATOR%"=="Visual Studio 10 Win64" ( call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" ) - - "%PYTHON%" setup.py bdist_wheel + - cmd: '%PYTHON% -m pip install -U nose wheel pygit2' before_test: - cmd: git config --global user.name "appveyor-test" @@ -46,7 +31,6 @@ before_test: test_script: - ps: | - cp build\Release\git2.dll . &$env:PYTHON setup.py nosetests --logging-level=WARN --with-xunit if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } # upload results to AppVeyor From 1a6f24d02d74c49e4d2dbe5ffb83f8694fe0804c Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Fri, 7 Jul 2017 21:32:53 +0300 Subject: [PATCH 2/2] .appveyor.yml: Disable build step Otherwise AppVeyor fails with `Specify a project or solution file. The directory does not contain a project or solution file.` https://ci.appveyor.com/project/spderosso/gitless/build/1.0.3/job/e54caey8a0b8knx3 --- .appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index f456c9d..c01c09f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -25,6 +25,8 @@ environment: init: - cmd: '%PYTHON% -m pip install -U nose wheel pygit2' +build: off + before_test: - cmd: git config --global user.name "appveyor-test" - cmd: git config --global user.email "appveyor@test.com"