/
.appveyor.yml
59 lines (48 loc) · 2.4 KB
/
.appveyor.yml
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
version: 1.8.{build}
os: Visual Studio 2015
platform: x64
configuration: Release
matrix:
fast_finish: true
environment:
OSGEO4W_ROOT: C:\OSGeo4W64
# Should speed up repository cloning
shallow_clone: true
clone_depth: 5
# Uncomment if you need to debug AppVeyor session (https://www.appveyor.com/docs/how-to/rdp-to-build-worker)
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
init:
- set PYTHONHOME=C:\Python27-x64
- set PYTHONPATH=%PYTHONHOME%\Lib;%OSGEO4W_ROOT%\apps\Python27\lib\site-packages
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- set PATH=%PYTHONHOME%;%PATH%
install:
# make a temp directory for downloading osgeo4w-setup.exe
# this may not matter as much if part of the install step, as libLAS has
# already been cloned, otherwise git would complain about a non-empty
# directory
- ps: mkdir C:\temp | out-null
- ps: mkdir $env:OSGEO4W_ROOT | out-null
# make an install directory for packacing
- ps: mkdir C:\liblas | out-null
# get the OSGeo installer
- ps: (new-object net.webclient).DownloadFile("http://download.osgeo.org/osgeo4w/v1/osgeo4w-setup-x86_64-v1.exe", "C:\temp\osgeo4w-setup.exe")
# and install our dependencies
- C:\temp\osgeo4w-setup.exe -q -k -r -A -s http://download.osgeo.org/osgeo4w/v1 -a x86_64 -P gdal,geos,laszip,libgeotiff,libtiff,proj,zlib -R %OSGEO4W_ROOT% > NUL
# call CMake configuration script
- call .\\bin\\appveyor\\config.cmd
build:
parallel: true
project: libLAS.sln
verbosity: minimal
test_script:
# FIXME: Clear PATH to avoid OSGeo4W loading incompatible DLLs
- set PATH=
- set PATH=%OSGEO4W_ROOT%\bin;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\7-Zip;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Python27;C:\Tools\GitVersion;C:\Program Files (x86)\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\AppVeyor\BuildAgent\
- set PYTHONHOME=C:\Python27-x64
- set PYTHONPATH=%PYTHONHOME%\Lib;%OSGEO4W_ROOT%\apps\Python27\lib\site-packages
- echo %PATH%
- set GDAL_DATA=%OSGEO4W_ROOT%\share\epsg_csv
- set PROJ_LIB=%OSGEO4W_ROOT%\share\proj
- ctest -V --output-on-failure -C Release