[wip] enable AppVeyor
This commit is contained in:
parent
16d54693a6
commit
eb380bb636
3 changed files with 19 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
||||||
environment:
|
environment:
|
||||||
msvs_toolset: 14
|
msvs_toolset: 14
|
||||||
BOOST_VERSION: 58
|
BOOST_VERSION: 58
|
||||||
|
FASTBUILD: 1
|
||||||
matrix:
|
matrix:
|
||||||
- platform: x64
|
- platform: x64
|
||||||
configuration: Release
|
configuration: Release
|
||||||
|
|
|
@ -7,6 +7,18 @@ ECHO =========== %~f0 ===========
|
||||||
SET PATH=C:\Python27;%PATH%
|
SET PATH=C:\Python27;%PATH%
|
||||||
SET PATH=C:\Program Files\7-Zip;%PATH%
|
SET PATH=C:\Program Files\7-Zip;%PATH%
|
||||||
|
|
||||||
|
::cloning mapnik-gyp
|
||||||
|
if EXIST mapnik-gyp ECHO mapnik-gyp already cloned && GOTO MAPNIK_GYP_ALREADY_HERE
|
||||||
|
CALL git clone https://github.com/mapnik/mapnik-gyp.git
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
:MAPNIK_GYP_ALREADY_HERE
|
||||||
|
CD mapnik-gyp
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
git pull
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
|
|
||||||
|
::cloning gyp
|
||||||
if EXIST gyp ECHO gyp already cloned && GOTO GYP_ALREADY_HERE
|
if EXIST gyp ECHO gyp already cloned && GOTO GYP_ALREADY_HERE
|
||||||
CALL git clone https://chromium.googlesource.com/external/gyp.git gyp
|
CALL git clone https://chromium.googlesource.com/external/gyp.git gyp
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
@ -14,6 +26,7 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
CD gyp
|
CD gyp
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
git pull
|
git pull
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
CD ..
|
CD ..
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
|
@ -25,20 +38,11 @@ ECHO extracting binary deps
|
||||||
IF EXIST mapnik-sdk (ECHO already extracted) ELSE (7z -y x deps.7z | %windir%\system32\FIND "ing archive")
|
IF EXIST mapnik-sdk (ECHO already extracted) ELSE (7z -y x deps.7z | %windir%\system32\FIND "ing archive")
|
||||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
SET MAPNIK_SDK=%APPVEYOR_BUILD_FOLDER%\mapnik-sdk
|
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
ECHO generating solution file, calling gyp...
|
|
||||||
CALL gyp\gyp.bat mapnik.gyp --depth=. ^
|
|
||||||
--debug=all ^
|
|
||||||
-Dincludes=%MAPNIK_SDK%/include ^
|
|
||||||
-Dlibs=%MAPNIK_SDK%/lib ^
|
|
||||||
-Dconfiguration=%configuration% ^
|
|
||||||
-Dplatform=%platform% ^
|
|
||||||
-Dboost_version=1_%BOOST_VERSION% ^
|
|
||||||
-f msvs -G msvs_version=2015 ^
|
|
||||||
--generator-output=build
|
|
||||||
IF %ERRORLEVEL% NEQ 0 (ECHO error during solution file generation && GOTO ERROR) ELSE (ECHO solution file generated)
|
|
||||||
|
|
||||||
|
ECHO calling build.bat of mapnik-gyp && CALL build.bat
|
||||||
|
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||||
|
|
||||||
GOTO DONE
|
GOTO DONE
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ ECHO =========== %~f0 ===========
|
||||||
|
|
||||||
SET MAPNIK_GIT=3.0.5
|
SET MAPNIK_GIT=3.0.5
|
||||||
SET BOOST_VERSION=58
|
SET BOOST_VERSION=58
|
||||||
|
SET FASTBUILD=1
|
||||||
SET msvs_toolset=14
|
SET msvs_toolset=14
|
||||||
SET platform=x64
|
SET platform=x64
|
||||||
SET APPVEYOR_BUILD_FOLDER=%CD%
|
SET APPVEYOR_BUILD_FOLDER=%CD%
|
||||||
|
|
Loading…
Reference in a new issue