miniupnp/appveyor.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

environment:
APP_VERSION: '2.1'
matrix:
- PYTHON_VER: C:\Python27\python
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG: --compiler=mingw32
- PYTHON_VER: C:\Python35\python
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
SETUP_COMPILER_FLAG:
- PYTHON_VER: C:\Python37\python
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG:
2020-05-06 17:23:15 +00:00
- PYTHON_VER: C:\Python37-x64\python
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
SETUP_COMPILER_FLAG:
version: '$(APP_VERSION).{build}'
2018-04-30 14:35:07 +00:00
image: Visual Studio 2017
2015-09-15 21:58:11 +00:00
install:
2016-07-31 03:03:48 +00:00
- set PATH=%PATH%;C:\msys64\mingw32\bin
# We need wheel installed to build wheels
- "%PYTHON_VER%.exe -m pip install wheel"
2015-09-15 21:58:11 +00:00
2015-09-15 21:48:14 +00:00
build_script:
2016-07-31 03:03:48 +00:00
- cd miniupnpc
2018-04-26 20:49:06 +00:00
- appveyor AddCompilationMessage "Building miniupnpc"
2016-07-31 03:03:48 +00:00
- mingw32-make -f Makefile.mingw
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER%
2018-04-26 20:35:32 +00:00
after_build:
- 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib
2018-04-26 20:35:32 +00:00
artifacts:
2018-04-30 14:35:07 +00:00
- path: miniupnpc-$(appveyor_build_version).zip
2018-04-26 20:35:32 +00:00
name: miniupnpc binaries
- path: miniupnpc/dist/miniupnpc-*.whl
name: miniupnpc python wheel (self-contained)
- path: miniupnpc/dist/miniupnpc-*.egg
name: miniupnpc python egg (self-contained)