summaryrefslogtreecommitdiff
path: root/.appveyor/packages.yml
blob: db6ccd5813e9e6fc2d9d446c736de1e0aa51c3c9 (plain)
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
version : 2.x.{build}

clone_folder: C:\Project

# We use the configuration to specify the package name
configuration:
  - psycopg2
  - psycopg2-binary

environment:
    matrix:
        # For Python versions available on Appveyor, see
        # https://www.appveyor.com/docs/windows-images-software/#python
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "32"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "64"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "32"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "64"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "32"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "64"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "32"}
        - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "64"}

    WORKFLOW: packages

    OPENSSL_VERSION: "1_1_1k"
    POSTGRES_VERSION: "13_3"

    PSYCOPG2_TESTDB: psycopg2_test
    PSYCOPG2_TESTDB_USER: postgres
    PSYCOPG2_TESTDB_HOST: localhost

    PGUSER: postgres
    PGPASSWORD: Password12!
    PGSSLMODE: require

    # Add CWD to perl library path for PostgreSQL build on VS2019
    PERL5LIB: .

    # Select according to the service enabled
    POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\

    # The python used in the build process, not the one packages are built for
    PYEXE: C:\Python36\python.exe

matrix:
    fast_finish: false

services:
    # Note: if you change this service also change POSTGRES_DIR
    - postgresql96

cache:
  # Rebuild cache if following file changes
  # (See the file to zap the cache manually)
  - C:\Others -> scripts\build\appveyor.cache_rebuild

# Script called before repo cloning
# init:

# Repository gets cloned, Cache is restored

install:
    - "%PYEXE% scripts\\build\\appveyor.py install"

# PostgreSQL server starts now

build: off

build_script:
    - "%PYEXE% scripts\\build\\appveyor.py build_script"

after_build:
    - "%PYEXE% scripts\\build\\appveyor.py after_build"

before_test:
    - "%PYEXE% scripts\\build\\appveyor.py before_test"

test_script:
    - "%PYEXE% scripts\\build\\appveyor.py test_script"

artifacts:
    - path: dist\psycopg2-*\*.whl
      name: wheel
    - path: dist\psycopg2-*\*.exe
      name: exe


# vim: set ts=4 sts=4 sw=4: