| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,26 +47,21 @@ init: | |||
| 47 | 47 | - python -c "import ctypes; print(ctypes.sizeof(ctypes.c_wchar))" | |
| 48 | 48 | ||
| 49 | 49 | install: | |
| 50 | - # install conda and deps | ||
| 51 | - - ps: .\ci\install_miniconda.ps1 | ||
| 52 | - | ||
| 53 | 50 | # install for wheels | |
| 54 | 51 | - pip install --upgrade pip wheel six | |
| 55 | 52 | ||
| 56 | 53 | build_script: | |
| 57 | 54 | # build clean sdist & wheel | |
| 58 | 55 | - python setup.py sdist bdist_wheel | |
| 59 | 56 | ||
| 60 | - # build and dist conda package | ||
| 61 | - - '%CMD_IN_ENV% %CONDA_BLD%\Scripts\conda build conda.recipe' | ||
| 62 | - - ps: $CONDA_PKG=(&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --output -q) | ||
| 63 | - - ps: Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\" | ||
| 64 | - | ||
| 65 | 57 | test_script: | |
| 66 | 58 | - pip install --no-index --find-links=.\dist\ pythonnet | |
| 67 | 59 | - ps: Copy-Item (Resolve-Path .\build\*\Python.Test.dll) C:\testdir | |
| 68 | 60 | - python src\tests\runtests.py | |
| 69 | 61 | # - "%NUNIT% src/embed_tests/bin/%PLATFORM%/ReleaseWin/Python.EmbeddingTest.dll" | |
| 70 | 62 | ||
| 63 | + # Build conda-recipe on Pull Requests | ||
| 64 | + - ps: .\ci\appveyor_build_recipe.ps1 | ||
| 65 | + | ||
| 71 | 66 | artifacts: | |
| 72 | 67 | - path: dist\* | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { | ||
| 2 | + Invoke-Expression .\ci\install_miniconda.ps1 | ||
| 3 | + &"$env:CONDA_BLD\Scripts\conda" build conda.recipe --dirty -q | ||
| 4 | + $CONDA_PKG=(&"$env:CONDA_BLD\Scripts\conda" build conda.recipe --output -q) | ||
| 5 | + Copy-Item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\dist\" | ||
| 6 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + # Conda Recipe | ||
| 2 | + | ||
| 3 | + The files here are needed to build Python.Net with conda | ||
| 4 | + | ||
| 5 | + http://conda.pydata.org/docs/building/recipe.html | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments