1# ------------------------------------------------------------------------------
2# appVeyor script
3# Copyright(c) pgRouting Contributors
4#
5# Main configuration
6# ------------------------------------------------------------------------------
7
8version: 2.6.{build}
9
10image: Visual Studio 2013
11configuration: Release
12platform: x64
13
14clone_depth: 1
15clone_folder: c:\build\pgrouting
16
17cache:
18  - downloads -> appveyor.yml
19  - c:\build\local\msvc120\x64 -> appveyor
20
21services:
22  - postgresql96
23
24environment:
25  CONFIGURATION: Release
26  MSVC_VER: 12.0
27  BUILD_ROOT_DIR: c:\build
28  PGIS_VERSION: 2.4
29  PG_VER: 9.6
30
31
32init:
33  - git config --global core.autocrlf false
34
35install:
36  # Install pgRouting prerequisites:
37  # cmake
38  # postGIS
39  # CGAL
40  - call ci\appveyor\install.bat
41
42
43build_script:
44  - cd c:\build\pgrouting\ci\appveyor
45  - msbuild_pgrouting.bat %PG_VER%
46  - cd %PGROUTING_BUILD_DIR%
47  - msbuild PGROUTING.sln /target:Build /property:Configuration=%CONFIGURATION%
48  - msbuild INSTALL.vcxproj /target:Build /property:Configuration=%CONFIGURATION%
49
50test_script:
51  - set PGUSER=postgres
52  - set PGPASSWORD=Password12!
53  - set PGHOME=C:\Progra~1\PostgreSQL\%PG_VER%
54  - set PGPORT=5432
55  - set PATH=%PATH%;%PGHOME%\bin
56  # Execute algorithm test by Cygwin
57  #- C:\cygwin\bin\bash -lc "cd /cygdrive/c/build/pgrouting && tools/testers/doc_queries_generator.pl -psql \"/cygdrive/c/Progra~1/PostgreSQL/%PG_VER%/bin/psql\""
58