File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed
Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -37,24 +37,28 @@ init:
3737 "%PYTHON%" -m pip install -U wheel pytest
3838
3939build_script :
40+ # Clone, build and install libgit2
4041- cmd : |
41- set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\build\libgit2
42+ set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\venv
4243 git clone --depth=1 -b maint/v0.28 https://github.com/libgit2/libgit2.git libgit2
43- mkdir build
44-
45- cd build
46- cmake -DSTDCALL=OFF -DBUILD_CLAR=OFF -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" ../libgit2 -G "%GENERATOR%"
47- cmake --build . --config Release --target install
44+ cd libgit2
45+ cmake . -DBUILD_CLAR=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBGIT2%" -G "%GENERATOR%"
46+ cmake --build . --target install
4847 cd ..
49-
5048 IF "%GENERATOR%"=="Visual Studio 10 Win64" ( call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" )
5149
50+ # Build and install pygit2
51+ # Rename pygit2 folder, so when testing it picks the installed one
52+ - cmd : |
5253 "%PYTHON%" setup.py bdist_wheel
54+ cd dist
55+ "%PYTHON%" -m pip install --find-links=. pygit2
56+ cd ..
57+ mv pygit2 pygit2.bak
5358
5459test_script :
5560- ps : |
56- $env:LIBGIT2 = ($Env:APPVEYOR_BUILD_FOLDER + "\build\libgit2")
57- &$env:PYTHON -m pytest --junitxml=testresults.xml
61+ &$env:PYTHON -m pytest test --junitxml=testresults.xml
5862
5963 if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
6064
Original file line number Diff line number Diff line change @@ -241,17 +241,16 @@ installed with `pip`:
241241
242242 pip install pygit2
243243
244- For development it is also possible to build `pygit2 ` with `libgit2 `
245- from sources. `libgit2 ` location is specified by the ``LIBGIT2 ``
246- environment variable. `libgit2 ` should be built in "__cdecl" mode.
247- The following recipe shows you how to do it from a bash shell:
244+ For development it is also possible to build `pygit2 ` with `libgit2 ` from
245+ sources. `libgit2 ` location is specified by the ``LIBGIT2 `` environment
246+ variable. The following recipe shows you how to do it from a bash shell:
248247
249248.. code-block :: sh
250249
251250 $ export LIBGIT2=C:/Dev/libgit2
252251 $ git clone --depth=1 -b maint/v0.26 https://github.com/libgit2/libgit2.git
253252 $ cd libgit2
254- $ cmake . -DSTDCALL=OFF - DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G " Visual Studio 9 2008 "
253+ $ cmake . -DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G " Visual Studio 14 Win64 "
255254 $ cmake --build . --config release --target install
256255 $ ctest -v
257256
You can’t perform that action at this time.
0 commit comments