2017-02-16 18:43:11 +03:00
|
|
|
version : 2.x.{build}
|
2020-10-29 21:23:16 +03:00
|
|
|
|
2017-02-16 18:43:11 +03:00
|
|
|
clone_folder: C:\Project
|
|
|
|
|
2021-05-25 14:59:19 +03:00
|
|
|
# We use the configuration to specify the package name
|
|
|
|
configuration:
|
|
|
|
- psycopg2
|
|
|
|
- psycopg2-binary
|
2017-02-16 18:43:11 +03:00
|
|
|
|
2021-05-25 14:59:19 +03:00
|
|
|
environment:
|
2017-02-16 18:43:11 +03:00
|
|
|
matrix:
|
|
|
|
# For Python versions available on Appveyor, see
|
2019-11-10 23:51:47 +03:00
|
|
|
# https://www.appveyor.com/docs/windows-images-software/#python
|
2021-10-05 01:44:09 +03:00
|
|
|
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "32"}
|
|
|
|
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "64"}
|
2020-10-29 21:23:16 +03:00
|
|
|
- {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"}
|
|
|
|
|
2021-05-25 14:59:19 +03:00
|
|
|
WORKFLOW: packages
|
|
|
|
|
2021-11-11 22:14:04 +03:00
|
|
|
OPENSSL_VERSION: "1_1_1l"
|
|
|
|
POSTGRES_VERSION: "14_1"
|
2018-01-29 04:57:17 +03:00
|
|
|
|
2017-02-16 18:43:11 +03:00
|
|
|
PSYCOPG2_TESTDB: psycopg2_test
|
|
|
|
PSYCOPG2_TESTDB_USER: postgres
|
|
|
|
PSYCOPG2_TESTDB_HOST: localhost
|
|
|
|
|
|
|
|
PGUSER: postgres
|
|
|
|
PGPASSWORD: Password12!
|
2019-04-21 15:33:15 +03:00
|
|
|
PGSSLMODE: require
|
|
|
|
|
2020-10-29 21:23:16 +03:00
|
|
|
# Add CWD to perl library path for PostgreSQL build on VS2019
|
|
|
|
PERL5LIB: .
|
|
|
|
|
2019-04-21 15:33:15 +03:00
|
|
|
# Select according to the service enabled
|
|
|
|
POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\
|
2017-02-16 18:43:11 +03:00
|
|
|
|
2019-04-14 22:10:51 +03:00
|
|
|
# The python used in the build process, not the one packages are built for
|
|
|
|
PYEXE: C:\Python36\python.exe
|
|
|
|
|
2017-02-16 18:43:11 +03:00
|
|
|
matrix:
|
|
|
|
fast_finish: false
|
|
|
|
|
|
|
|
services:
|
2019-04-21 15:33:15 +03:00
|
|
|
# Note: if you change this service also change POSTGRES_DIR
|
2017-06-08 23:21:30 +03:00
|
|
|
- postgresql96
|
2017-02-16 18:43:11 +03:00
|
|
|
|
|
|
|
cache:
|
|
|
|
# Rebuild cache if following file changes
|
2017-10-24 13:03:14 +03:00
|
|
|
# (See the file to zap the cache manually)
|
2021-06-15 20:57:22 +03:00
|
|
|
- C:\Others -> scripts\build\appveyor.cache_rebuild
|
2017-02-16 18:43:11 +03:00
|
|
|
|
|
|
|
# Script called before repo cloning
|
2019-04-15 05:51:31 +03:00
|
|
|
# init:
|
2019-04-14 22:10:51 +03:00
|
|
|
|
2017-02-16 18:43:11 +03:00
|
|
|
# Repository gets cloned, Cache is restored
|
2019-04-15 04:07:03 +03:00
|
|
|
|
2017-02-16 18:43:11 +03:00
|
|
|
install:
|
2021-06-15 20:57:22 +03:00
|
|
|
- "%PYEXE% scripts\\build\\appveyor.py install"
|
2017-02-16 18:43:11 +03:00
|
|
|
|
2019-04-15 04:07:03 +03:00
|
|
|
# PostgreSQL server starts now
|
2017-02-16 18:43:11 +03:00
|
|
|
|
2019-04-15 04:07:03 +03:00
|
|
|
build: off
|
2017-02-16 18:43:11 +03:00
|
|
|
|
|
|
|
build_script:
|
2021-06-15 20:57:22 +03:00
|
|
|
- "%PYEXE% scripts\\build\\appveyor.py build_script"
|
2019-04-15 04:07:03 +03:00
|
|
|
|
2019-04-15 04:26:18 +03:00
|
|
|
after_build:
|
2021-06-15 20:57:22 +03:00
|
|
|
- "%PYEXE% scripts\\build\\appveyor.py after_build"
|
2017-02-16 18:43:11 +03:00
|
|
|
|
|
|
|
before_test:
|
2021-06-15 20:57:22 +03:00
|
|
|
- "%PYEXE% scripts\\build\\appveyor.py before_test"
|
2017-02-16 18:43:11 +03:00
|
|
|
|
|
|
|
test_script:
|
2021-06-15 20:57:22 +03:00
|
|
|
- "%PYEXE% scripts\\build\\appveyor.py test_script"
|
2019-04-14 22:10:51 +03:00
|
|
|
|
2021-05-25 14:59:19 +03:00
|
|
|
artifacts:
|
|
|
|
- path: dist\psycopg2-*\*.whl
|
|
|
|
name: wheel
|
|
|
|
|
2019-04-14 22:10:51 +03:00
|
|
|
|
|
|
|
# vim: set ts=4 sts=4 sw=4:
|