-
Notifications
You must be signed in to change notification settings - Fork 433
/
appveyor.yml
99 lines (82 loc) · 3.53 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: 1.0.{build}
os: Visual Studio 2015
platform: x64
configuration: Release
matrix:
fast_finish: true
environment:
OSGEO4W_ROOT: C:\OSGeo4W64
matrix:
- PDAL_OPTIONAL_COMPONENTS: OFF
- PDAL_OPTIONAL_COMPONENTS: ON
# 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 PYTHON_VERSION=2.7
- set PYTHONPATH=%PYTHONHOME%\Lib
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- set PATH=%PYTHONHOME%;%PATH%
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- set MINICONDA=C:\Miniconda-x64
install:
# make a temp directory for downloading osgeo4w-setup.exe
# this may not matter as much if part of the install step, as pdal 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:\pdalbin | out-null
# get the OSGeo installer
- ps: (new-object net.webclient).DownloadFile("http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.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/ -a x86_64 -P boost-devel,eigen,gdal,geos,hexer,iconv,laszip,libgeotiff,libpq,libtiff,libxml2,nitro,pcl,points2grid,proj,zlib -R %OSGEO4W_ROOT% > NUL
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
# - conda update -q conda
- conda info -a
- "conda create -q -n test python=%PYTHON_VERSION% numpy"
- activate test
# call our PDAL install script
- call .\\scripts\\appveyor\\config.cmd
build:
parallel: true
project: PDAL.sln
verbosity: minimal
after_build:
- 7z a pdal.zip %APPVEYOR_BUILD_FOLDER%\bin\*.*
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\
- echo %PATH%
- set GDAL_DATA=%OSGEO4W_ROOT%\share\epsg_csv
- set PROJ_LIB=%OSGEO4W_ROOT%\share\proj
- ctest -V --output-on-failure -C Release
artifacts:
- path: pdal.zip
name: pdalmaster
deploy:
# Amazon S3 deployment provider settings
- provider: S3
access_key_id:
secure: 6DDLMtbxyT6amL3m5gmMObyL0ucWzIGxylinnYuMJPM=
secret_access_key:
secure: cSqZlsaCxFwXgxJw0BLd7npMFvQk3Vbr74ZPLaBQWLKnOz1cKss9qab1SzSygwkh
bucket: "pdal"
folder: "osgeo4w/"
artifact: pdalmaster
set_public: true
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
- provider: Slack
incoming_webhook:
secure: KxbDvaPmsvNmYpsp0TH3m3hJr7PqQL1sxR8xILBzaF2Lbku03M3mJ/h787TvDGQGX3IlyZtfTP0wvSRqMl4nMmdvDQZoAe8+Gyfc7BOkYIg=