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