Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build conda recipe on Pull Requests
  • Loading branch information
vmuriart committed Jan 31, 2017
commit 5cdc0b4ef959b0e45f3898423e244b9114364ba9
11 changes: 3 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,21 @@ init:
- python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))"

install:
# install conda and deps
- ps: .\ci\install_miniconda.ps1

# install for wheels
- pip install --upgrade pip wheel six

build_script:
# build clean sdist & wheel
- python setup.py sdist bdist_wheel

# build and dist conda package
- '%CMD_IN_ENV% %CONDA_BLD%\Scripts\conda build conda.recipe'
- ps: $CONDA_PKG=(&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --output -q)
- ps: Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\"

test_script:
- pip install --no-index --find-links=.\dist\ pythonnet
- ps: Copy-Item (Resolve-Path .\build\*\Python.Test.dll) C:\testdir
- python src\tests\runtests.py
# - "%NUNIT% src/embed_tests/bin/%PLATFORM%/ReleaseWin/Python.EmbeddingTest.dll"

# Build conda-recipe on Pull Requests
- ps: .\ci\appveyor_build_recipe.ps1

artifacts:
- path: dist\*
6 changes: 6 additions & 0 deletions ci/appveyor_build_recipe.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
Invoke-Expression .\ci\install_miniconda.ps1
&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --dirty -q
$CONDA_PKG=(&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --output -q)
Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\"
}
5 changes: 5 additions & 0 deletions conda.recipe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Conda Recipe

The files here are needed to build Python.Net with conda

http://conda.pydata.org/docs/building/recipe.html