1environment: 2 APP_VERSION: '2.1' 3 matrix: 4 - PYTHON_VER: C:\Python27 5 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 6 SETUP_COMPILER_FLAG: --compiler=mingw32 7 ARCH_BITS: 32 8 - PYTHON_VER: C:\Python35 9 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 10 SETUP_COMPILER_FLAG: 11 ARCH_BITS: 32 12 - PYTHON_VER: C:\Python37 13 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 14 SETUP_COMPILER_FLAG: 15 ARCH_BITS: 32 16 - PYTHON_VER: C:\Python37-x64 17 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 18 SETUP_COMPILER_FLAG: 19 ARCH_BITS: 64 20 21 22version: '$(APP_VERSION).{build}' 23 24image: Visual Studio 2017 25 26install: 27 - set PATH=%PYTHON_VER%;%PYTHON_VER%\Scripts;%PATH%;C:\msys64\mingw%ARCH_BITS%\bin 28 # We need wheel installed to build wheels 29 - "%PYTHON_VER%\\python.exe -m pip install wheel" 30 - echo %PATH% 31 - cc -v 32 33build_script: 34 - cd miniupnpc 35 - appveyor AddCompilationMessage "Building miniupnpc" 36 - mingw32-make -f Makefile.mingw 37 - appveyor AddCompilationMessage "Building python module" 38 - mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER%\python 39 40after_build: 41 - 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc_%ARCH_BITS%b-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib 42 43artifacts: 44 - path: miniupnpc*-$(appveyor_build_version).zip 45 name: miniupnpc binaries 46 - path: miniupnpc/dist/miniupnpc-*.whl 47 name: miniupnpc python wheel (self-contained) 48 - path: miniupnpc/dist/miniupnpc-*.egg 49 name: miniupnpc python egg (self-contained) 50