lint: reformat appveyor yaml

This commit is contained in:
Daniele Varrazzo 2022-10-25 12:54:34 +02:00
parent 259d15ae3e
commit 78690cfaf8
2 changed files with 82 additions and 78 deletions

View File

@ -1,4 +1,4 @@
version : 2.x.{build} version: 2.x.{build}
clone_folder: C:\Project clone_folder: C:\Project
@ -8,48 +8,50 @@ configuration:
- psycopg2-binary - psycopg2-binary
environment: environment:
matrix: matrix:
# For Python versions available on Appveyor, see # For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python # https://www.appveyor.com/docs/windows-images-software/#python
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "32"} # - {PY_VER: "311", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "64"} # - {PY_VER: "310", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "32"} - {PY_VER: "310", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "64"} - {PY_VER: "310", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "32"} - {PY_VER: "39", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "64"} - {PY_VER: "39", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "32"} - {PY_VER: "38", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "64"} - {PY_VER: "38", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "32"} - {PY_VER: "37", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "64"} - {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", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
WORKFLOW: packages WORKFLOW: packages
OPENSSL_VERSION: "1_1_1r" OPENSSL_VERSION: "1_1_1r"
POSTGRES_VERSION: "15_0" POSTGRES_VERSION: "15_0"
PSYCOPG2_TESTDB: psycopg2_test PSYCOPG2_TESTDB: psycopg2_test
PSYCOPG2_TESTDB_USER: postgres PSYCOPG2_TESTDB_USER: postgres
PSYCOPG2_TESTDB_HOST: localhost PSYCOPG2_TESTDB_HOST: localhost
PGUSER: postgres PGUSER: postgres
PGPASSWORD: Password12! PGPASSWORD: Password12!
PGSSLMODE: require PGSSLMODE: require
# Add CWD to perl library path for PostgreSQL build on VS2019 # Add CWD to perl library path for PostgreSQL build on VS2019
PERL5LIB: . PERL5LIB: .
# Select according to the service enabled # Select according to the service enabled
POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\ POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\
# The python used in the build process, not the one packages are built for # The python used in the build process, not the one packages are built for
PYEXE: C:\Python36\python.exe PYEXE: C:\Python36\python.exe
matrix: matrix:
fast_finish: false fast_finish: false
services: services:
# Note: if you change this service also change POSTGRES_DIR # Note: if you change this service also change POSTGRES_DIR
- postgresql96 - postgresql96
cache: cache:
# Rebuild cache if following file changes # Rebuild cache if following file changes
@ -62,27 +64,27 @@ cache:
# Repository gets cloned, Cache is restored # Repository gets cloned, Cache is restored
install: install:
- "%PYEXE% scripts\\build\\appveyor.py install" - "%PYEXE% scripts\\build\\appveyor.py install"
# PostgreSQL server starts now # PostgreSQL server starts now
build: off build: "off"
build_script: build_script:
- "%PYEXE% scripts\\build\\appveyor.py build_script" - "%PYEXE% scripts\\build\\appveyor.py build_script"
after_build: after_build:
- "%PYEXE% scripts\\build\\appveyor.py after_build" - "%PYEXE% scripts\\build\\appveyor.py after_build"
before_test: before_test:
- "%PYEXE% scripts\\build\\appveyor.py before_test" - "%PYEXE% scripts\\build\\appveyor.py before_test"
test_script: test_script:
- "%PYEXE% scripts\\build\\appveyor.py test_script" - "%PYEXE% scripts\\build\\appveyor.py test_script"
artifacts: artifacts:
- path: dist\psycopg2-*\*.whl - path: dist\psycopg2-*\*.whl
name: wheel name: wheel
# vim: set ts=4 sts=4 sw=4: # vim: set ts=4 sts=4 sw=4:

View File

@ -1,50 +1,52 @@
version : 2.x.{build} version: 2.x.{build}
clone_folder: C:\Project clone_folder: C:\Project
environment: environment:
matrix: matrix:
# For Python versions available on Appveyor, see # For Python versions available on Appveyor, see
# https://www.appveyor.com/docs/windows-images-software/#python # https://www.appveyor.com/docs/windows-images-software/#python
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "32"} # - {PY_VER: "311", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "310", PY_ARCH: "64"} # - {PY_VER: "311", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "32"} - {PY_VER: "310", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019, PY_VER: "39", PY_ARCH: "64"} - {PY_VER: "310", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "32"} - {PY_VER: "39", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "38", PY_ARCH: "64"} - {PY_VER: "39", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "32"} - {PY_VER: "38", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "64"} - {PY_VER: "38", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "32"} - {PY_VER: "37", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
- {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "64"} - {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", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015}
WORKFLOW: tests WORKFLOW: tests
OPENSSL_VERSION: "1_1_1r" OPENSSL_VERSION: "1_1_1r"
POSTGRES_VERSION: "15_0" POSTGRES_VERSION: "15_0"
PSYCOPG2_TESTDB: psycopg2_test PSYCOPG2_TESTDB: psycopg2_test
PSYCOPG2_TESTDB_USER: postgres PSYCOPG2_TESTDB_USER: postgres
PSYCOPG2_TESTDB_HOST: localhost PSYCOPG2_TESTDB_HOST: localhost
PGUSER: postgres PGUSER: postgres
PGPASSWORD: Password12! PGPASSWORD: Password12!
PGSSLMODE: require PGSSLMODE: require
# Add CWD to perl library path for PostgreSQL build on VS2019 # Add CWD to perl library path for PostgreSQL build on VS2019
PERL5LIB: . PERL5LIB: .
# Select according to the service enabled # Select according to the service enabled
POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\ POSTGRES_DIR: C:\Program Files\PostgreSQL\9.6\
# The python used in the build process, not the one packages are built for # The python used in the build process, not the one packages are built for
PYEXE: C:\Python36\python.exe PYEXE: C:\Python36\python.exe
matrix: matrix:
fast_finish: false fast_finish: false
services: services:
# Note: if you change this service also change POSTGRES_DIR # Note: if you change this service also change POSTGRES_DIR
- postgresql96 - postgresql96
cache: cache:
# Rebuild cache if following file changes # Rebuild cache if following file changes
@ -57,23 +59,23 @@ cache:
# Repository gets cloned, Cache is restored # Repository gets cloned, Cache is restored
install: install:
- "%PYEXE% scripts\\build\\appveyor.py install" - "%PYEXE% scripts\\build\\appveyor.py install"
# PostgreSQL server starts now # PostgreSQL server starts now
build: off build: "off"
build_script: build_script:
- "%PYEXE% scripts\\build\\appveyor.py build_script" - "%PYEXE% scripts\\build\\appveyor.py build_script"
after_build: after_build:
- "%PYEXE% scripts\\build\\appveyor.py after_build" - "%PYEXE% scripts\\build\\appveyor.py after_build"
before_test: before_test:
- "%PYEXE% scripts\\build\\appveyor.py before_test" - "%PYEXE% scripts\\build\\appveyor.py before_test"
test_script: test_script:
- "%PYEXE% scripts\\build\\appveyor.py test_script" - "%PYEXE% scripts\\build\\appveyor.py test_script"
# vim: set ts=4 sts=4 sw=4: # vim: set ts=4 sts=4 sw=4: