forked from gaspardle/mapnik-mssql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (43 loc) · 1.73 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
version: v0.2.{build}-{branch}
pull_requests:
do_not_increment_build_number: true
skip_tags: true
os: Visual Studio 2015
configuration: Release
init:
- SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- SET PATH=C:\Program Files\7-Zip;%PATH%
- SET MAPNIK_SDK=%CD%\mapnik-sdk
environment:
msvs_toolset: 14
matrix:
- platform: x64
MAPNIK_GIT: v3.0.15
- platform: x86
MAPNIK_GIT: v3.0.15
services:
- mssql2014
install:
- ps: Write-Output "fetching mapnik sdk http://mapnik.s3.amazonaws.com/dist/dev/mapnik-win-sdk-$env:MAPNIK_GIT-$env:Platform-$env:msvs_toolset.0.7z"
- ps: Start-FileDownload http://mapnik.s3.amazonaws.com/dist/dev/mapnik-win-sdk-$env:MAPNIK_GIT-$env:Platform-$env:msvs_toolset.0.7z -FileName mapnik-sdk.7z
- ps: Write-Output "extracting mapnik sdk"
- ps: invoke-expression "& 7z -y x mapnik-sdk.7z | FIND /V `"ing `""
- ps: $env:INCLUDE = "$env:MAPNIK_SDK\include\"
- ps: $env:LIB = "$env:MAPNIK_SDK\lib\"
build:
verbosity: minimal
test_script:
- ps: $sqlInstance = "(local)\SQL2014"
- ps: $sqlUser = "sa"
- ps: $sqlPw = "Password12!"
- ps: sqlcmd -S "$sqlInstance" -i .\test\mssql-create-db-and-tables.sql -f 65001
- ps: sqlcmd -S "$sqlInstance" -i .\test\mssql-datatypes-test.sql -f 65001
- ps: $ENV:MSSQL_CONNECTION_STRING = "Driver={SQL Server Native Client 11.0};Server=$sqlInstance;Database=mapnik_tmp_mssql_db;Uid=$sqlUser;Pwd=$sqlPw;"
- ps: $ENV:PATH = "$ENV:MAPNIK_SDK\lib" + ";" + $ENV:Path
- ps: $ENV:ICU_DATA = "$ENV:MAPNIK_SDK\share\icu"
- ps: $ENV:PROJ_LIB = "$ENV:MAPNIK_SDK\share\proj"
- ps: $ENV:GDAL_DATA = "$ENV:MAPNIK_SDK\share\gdal"
- ps: cd "msvc\$env:Platform\$env:Configuration"
- ps: .\test.exe
artifacts:
- path: msvc\$(platform)\$(configuration)\*.input