aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 2a1aa97635e849ca30bf2b98a1a7395c5afaf8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
platform:
- x64
- x86

environment:
  matrix:

# VS 2015
  - VS_VERSION: Visual Studio 14
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015

# VS 2017
  - VS_VERSION: Visual Studio 15
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017

shallow_clone: true

build_script:
  - echo build_script
  - vcpkg install sqlite3:"%platform%"-windows
  - ps: |
        appveyor DownloadFile https://sqlite.org/2018/sqlite-tools-win32-x86-3250100.zip
        7z x sqlite-tools-win32-x86-3250100.zip
        copy sqlite-tools-win32-x86-3250100/sqlite3.exe .
  - if "%platform%" == "x64" SET VS_FULL=%VS_VERSION% Win64
  - if "%platform%" == "x86" SET VS_FULL=%VS_VERSION%
  - echo "%VS_FULL%"
#
  - if "%platform%" == "x64" mkdir build_dll
  - if "%platform%" == "x64" cd build_dll
  - if "%platform%" == "x64" copy ..\sqlite3.exe .
  - if "%platform%" == "x64" copy c:\tools\vcpkg\installed\x64-windows\bin\sqlite3.dll .
  - if "%platform%" == "x64" cmake -G "%VS_FULL%" .. -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBPROJ_SHARED=ON -DCMAKE_C_FLAGS="/WX" -DCMAKE_CXX_FLAGS="/WX" -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
  - if "%platform%" == "x64" cmake --build . --config Release
  - if "%platform%" == "x64" cd ..
#
  - if "%platform%" == "x86" mkdir build_static
  - if "%platform%" == "x86" cd build_static
  - if "%platform%" == "x86" copy ..\sqlite3.exe .
  - if "%platform%" == "x86" copy c:\tools\vcpkg\installed\x86-windows\bin\sqlite3.dll .
  - if "%platform%" == "x86" cmake -G "%VS_FULL%" .. -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBPROJ_SHARED=OFF -DCMAKE_C_FLAGS="/WX" -DCMAKE_CXX_FLAGS="/WX" -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
  - if "%platform%" == "x86" cmake --build . --config Release
  - if "%platform%" == "x86" cd ..

test_script:
  - echo test_script
  - set PROJ_LIB=C:\projects\proj-4\data
  - set CURDIR=%CD%
  - cd %PROJ_LIB%
  - curl -O http://download.osgeo.org/proj/proj-datumgrid-1.7.zip
  - 7z e -aoa -y proj-datumgrid-1.7.zip
  - dir
  - cd ..
  - cd %CURDIR%
#
  - if "%platform%" == "x64" cd build_dll
  - if "%platform%" == "x64" ctest -V -C Release
  - if "%platform%" == "x64" cd ..
#
  - if "%platform%" == "x86" cd build_static
  - if "%platform%" == "x86" ctest -V -C Release
  - if "%platform%" == "x86" cd ..

deploy: off