@@ -14,15 +14,12 @@ environment:
1414 BZIP2_INCLUDE_DIR : C:\bzip2\dev
1515 BZIP2_LIBRARY : C:\bzip2\dll
1616 BOOST_PATH : C:\Libraries\boost_1_63_0
17- POSTGRESQL_VER : 9.6.6
17+ POSTGRESQL_VER : 11.2
1818 TESTS_POSTGRESQL_ROOT : C:\Progra~1\PostgreSQL\9.6
1919 POSTGIS_VER : 2.4.3
2020 POSTGIS_URL : " https://lonvia.dev.openstreetmap.org/osm2pgsql-winbuild/postgis-bundle-pg96-2.4.3x64.zip"
2121 PGUSER : postgres
2222 PGPASSWORD : Password12!
23- matrix :
24- - arch : x86
25- - arch : x64
2623
2724os : Visual Studio 2015
2825
@@ -35,37 +32,29 @@ clone_depth: 1
3532
3633init :
3734 - git config --global core.autocrlf input
38- - set bz2_dll_url=https://github.com/philr/bzip2-windows/releases/download/v%BZIP2_VER%/bzip2-dll-%BZIP2_VER%-win-%arch%.zip
39- - set bz2_dev_url=https://github.com/philr/bzip2-windows/releases/download/v%BZIP2_VER%/bzip2-dev-%BZIP2_VER%-win-%arch%.zip
40- - if "%arch%"=="x86" (
41- set vcvarsall_arg=x86&&
42- set conda_path=C:\Miniconda36\Scripts&&
43- set python_path=C:\Python38&&
44- set conda_library_path=C:\Miniconda36\envs\osm2pgsql\Library&&
45- set lua_url=https://lonvia.dev.openstreetmap.org/osm2pgsql-winbuild/lua_x86.zip&&
46- set build_type=Release)
47- - if "%arch%"=="x64" (
48- set vcvarsall_arg=amd64&&
49- set conda_path=C:\Miniconda36-x64\Scripts&&
50- set python_path=C:\Python38-x64&&
51- set conda_library_path=C:\Miniconda36-x64\envs\osm2pgsql\Library&&
52- set lua_url=https://lonvia.dev.openstreetmap.org/osm2pgsql-winbuild/lua_x64.zip&&
53- set build_type=Release)
35+ - set bz2_dll_url=https://github.com/philr/bzip2-windows/releases/download/v%BZIP2_VER%/bzip2-dll-%BZIP2_VER%-win-x64.zip
36+ - set bz2_dev_url=https://github.com/philr/bzip2-windows/releases/download/v%BZIP2_VER%/bzip2-dev-%BZIP2_VER%-win-x64.zip
37+ - set vcvarsall_arg=amd64
38+ - set conda_path=C:\Miniconda36-x64\Scripts
39+ - set python_path=C:\Python38-x64
40+ - set conda_library_path=C:\Miniconda36-x64\envs\osm2pgsql\Library
41+ - set lua_url=https://lonvia.dev.openstreetmap.org/osm2pgsql-winbuild/lua_x64.zip
42+ - set build_type=Release
5443 - ' "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall" %vcvarsall_arg%'
5544
5645install :
57- - set PATH=%TESTS_POSTGRESQL_ROOt %\bin;%python_path%;%PATH%;%conda_path%
46+ - set PATH=%TESTS_POSTGRESQL_ROOT %\bin;%python_path%;%PATH%;%conda_path%
5847 - cd c:\
5948 - conda config --set always_yes yes
6049 - conda create --name osm2pgsql
6150 - activate osm2pgsql
6251 - conda install expat=%EXPAT_VER% proj4=%PROJ4_VER% zlib=%ZLIB_VER% postgresql=%POSTGRESQL_VER%
63- - ps : if (!(Test-Path "C:\bzip2_dll_$env:arch .zip")){(new-object net.webclient).DownloadFile($env:bz2_dll_url, "C:\bzip2_dll_$env:arch .zip")}
64- - 7z x -y C:\bzip2_dll_%arch% .zip -o%BZIP2_LIBRARY%
65- - ps : if (!(Test-Path "C:\bzip2_dev_$env:arch .zip")){(new-object net.webclient).DownloadFile($env:bz2_dev_url, "C:\bzip2_dev_$env:arch .zip")}
66- - 7z x -y C:\bzip2_dev_%arch% .zip -o%BZIP2_INCLUDE_DIR%
67- - ps : if (!(Test-Path "C:\lua_$env:arch .zip")){(new-object net.webclient).DownloadFile($env:lua_url, "C:\lua_$env:arch .zip")}
68- - 7z x -y C:\lua_%arch% .zip -oC:\lua
52+ - ps : if (!(Test-Path "C:\bzip2_dll_x64 .zip")){(new-object net.webclient).DownloadFile($env:bz2_dll_url, "C:\bzip2_dll_x64 .zip")}
53+ - 7z x -y C:\bzip2_dll_x64 .zip -o%BZIP2_LIBRARY%
54+ - ps : if (!(Test-Path "C:\bzip2_dev_x64 .zip")){(new-object net.webclient).DownloadFile($env:bz2_dev_url, "C:\bzip2_dev_x64 .zip")}
55+ - 7z x -y C:\bzip2_dev_x64 .zip -o%BZIP2_INCLUDE_DIR%
56+ - ps : if (!(Test-Path "C:\lua_x64 .zip")){(new-object net.webclient).DownloadFile($env:lua_url, "C:\lua_x64 .zip")}
57+ - 7z x -y C:\lua_x64 .zip -oC:\lua
6958 - ps : if (!(Test-Path "C:\postgis.zip")){(new-object net.webclient).DownloadFile($env:POSTGIS_URL, "C:\postgis.zip")}
7059 - 7z x C:\postgis.zip -oC:\postgis
7160 - xcopy /e /y /q C:\postgis\postgis-bundle-pg96-2.4.3x64 %TESTS_POSTGRESQL_ROOT%
@@ -98,13 +87,18 @@ after_build:
9887 - copy /y ..\*.style osm2pgsql-bin
9988 - copy /y ..\*.lua osm2pgsql-bin
10089 - copy /y %conda_library_path%\bin\libpq.dll osm2pgsql-bin
101- - copy /y %conda_library_path%\bin\libeay32.dll osm2pgsql-bin
102- - copy /y %conda_library_path%\bin\ssleay32.dll osm2pgsql-bin
10390 - copy /y %conda_library_path%\bin\zlib.dll osm2pgsql-bin
10491 - copy /y %conda_library_path%\bin\expat.dll osm2pgsql-bin
92+ - copy /y %conda_library_path%\bin\gssapi64.dll osm2pgsql-bin
93+ - copy /y %conda_library_path%\bin\libcrypto-1_1-x64.dll osm2pgsql-bin
94+ - copy /y %conda_library_path%\bin\libssl-1_1-x64.dll osm2pgsql-bin
95+ - copy /y %conda_library_path%\bin\comerr64.dll osm2pgsql-bin
96+ - copy /y %conda_library_path%\bin\krb5_64.dll osm2pgsql-bin
97+ - copy /y %conda_library_path%\bin\k5sprt64.dll osm2pgsql-bin
98+ - copy /y %conda_library_path%\bin\wshelp64.dll osm2pgsql-bin
10599 - copy /y %BZIP2_LIBRARY%\libbz2.dll osm2pgsql-bin
106100 - copy /y %LUA_DLL% osm2pgsql-bin
107- - 7z a c:\osm2pgsql\osm2pgsql_%build_type%_%arch% .zip osm2pgsql-bin -tzip
101+ - 7z a c:\osm2pgsql\osm2pgsql_%build_type%_x64 .zip osm2pgsql-bin -tzip
108102
109103before_test :
110104 - cd c:\
@@ -122,10 +116,10 @@ test_script:
122116 - ctest -VV -LE FlatNodes # enable when Postgis will be available
123117
124118artifacts :
125- - path : osm2pgsql_%build_type%_%arch% .zip
119+ - path : osm2pgsql_%build_type%_x64 .zip
126120
127121cache :
128- - C:\lua_%arch% .zip -> appveyor.yml
129- - C:\bzip2_dev_%arch% .zip -> appveyor.yml
130- - C:\bzip2_dll_%arch% .zip -> appveyor.yml
122+ - C:\lua_x64 .zip -> appveyor.yml
123+ - C:\bzip2_dev_x64 .zip -> appveyor.yml
124+ - C:\bzip2_dll_x64 .zip -> appveyor.yml
131125 - C:\postgis.zip -> appveyor.yml
0 commit comments