-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
27 lines (22 loc) · 852 Bytes
/
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
cache:
- "C:\\GDAL"
- "C:\\sr"
build: off
init:
- mkdir %systemdrive%\GDAL.download
- cd %systemdrive%\GDAL.download
- if not exist "C:\GDAL\lib" appveyor DownloadFile "http://download.gisinternals.com/sdk/downloads/release-1500-gdal-1-11-3-mapserver-6-4-2-libs.zip" -FileName archive.zip
- mkdir "C:\GDAL"
- 7z x -y "archive.zip" -o"C:\GDAL" > nul
- cd %APPVEYOR_BUILD_FOLDER%
before_test:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
environment:
global:
STACK_ROOT: "c:\\sr"
test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack test --flag bindings-gdal:examples --flag bindings-gdal:-autoconfig --no-terminal --extra-lib-dirs="C:\GDAL\lib" --extra-include-dirs="C:\GDAL\include"