[CI] Added Appveyor CI Config

Former-commit-id: f7855b6c65
This commit is contained in:
Leroy.H.Y 2019-06-21 18:59:02 +08:00
parent 7a67566e4d
commit fe6ffd3129
3 changed files with 8 additions and 23 deletions

View File

@ -8,10 +8,10 @@ branches:
install:
- set QTDIR=C:\Qt\5.10\mingw53_32
- choco install -y InnoSetup
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 5"
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw730_32\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 5"
build_script:
- tools\WindowsInstallDependencies.bat
- mkdir python37 && xcopy C:\Python37 python37 /E /H /Q
- tools\FixPythonWithMinGW.bat
- cd src
- mkdir build && cd build

View File

@ -1,9 +1,6 @@
set CURRENT_PATH=%~dp0%
cd %~dp0\..\python37\libs\
echo EXPORTS > python37.def
nm python37.lib | grep " T _" | sed "s/.* T _//" >> python37.def
dlltool --input-def python37.def --dllname python37 --output-lib libpython37_mingw.a
cd %CURRENT_PATH%\..\

View File

@ -2,26 +2,14 @@
REM Install Python
ECHO Downloading Python using wget...
wget.exe https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe -O %~dp0\python-3.7.3.exe
%~dp0\wget.exe https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe -O %~dp0\python-3.7.3.exe
REM Get install path
CALL :NORMALIZEPATH "..\python37\"
CALL :NORMALIZEPATH "\python37\"
ECHO INSTALL_PATH=%RETVAL%
REM Installing Python...
python-3.7.3.exe /quiet TargetDir=%RETVAL%
REM From: https://stackoverflow.com/a/8185270/8364323
ECHO Wait for it installing....
:LOOP
PSLIST python-3.7.3 >nul 2>&1
IF ERRORLEVEL 1 (
GOTO CONTINUE
) ELSE (
ECHO Waiting for python finish install.
TIMEOUT /T 5
GOTO LOOP
)
start /w "" "%~dp0\python-3.7.3.exe" /quiet TargetDir=%RETVAL%
:CONTINUE
ECHO Python headers and libs are installed!