mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +03:00
Add ARM64 jobs in Travis-CI
Signed-off-by: odidev <odidev@puresoftware.com>
This commit is contained in:
parent
f7618f8bf5
commit
6de8c0c6d2
18
.travis.yml
18
.travis.yml
|
@ -2,16 +2,24 @@
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
|
dist: bionic
|
||||||
|
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
python:
|
||||||
|
- 3.5
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
- python: 3.8
|
|
||||||
- python: 3.7
|
|
||||||
- python: 3.6
|
|
||||||
- python: 3.5
|
|
||||||
- python: 3.4
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- sudo apt-get install -y bc
|
||||||
- pip install -U pip setuptools wheel
|
- pip install -U pip setuptools wheel
|
||||||
- pip install .
|
- pip install .
|
||||||
- rm -rf psycopg2.egg-info
|
- rm -rf psycopg2.egg-info
|
||||||
|
|
|
@ -13,6 +13,11 @@ set -e -x
|
||||||
#
|
#
|
||||||
# The variables can be set in the travis configuration
|
# The variables can be set in the travis configuration
|
||||||
# (https://travis-ci.org/psycopg/psycopg2/settings)
|
# (https://travis-ci.org/psycopg/psycopg2/settings)
|
||||||
|
export TEST_PAST=${TEST_PAST:-0}
|
||||||
|
export TEST_FUTURE=${TEST_FUTURE:-0}
|
||||||
|
export TEST_VERBOSE=${TEST_VERBOSE:-0}
|
||||||
|
export PSYCOPG2_TEST_FAST=${PSYCOPG2_TEST_FAST:-0}
|
||||||
|
export TEST_PRESENT=${TEST_PRESENT:-1}
|
||||||
|
|
||||||
set_param () {
|
set_param () {
|
||||||
# Set a parameter in a postgresql.conf file
|
# Set a parameter in a postgresql.conf file
|
||||||
|
@ -115,16 +120,19 @@ create () {
|
||||||
# Would give a permission denied error in the travis build dir
|
# Would give a permission denied error in the travis build dir
|
||||||
cd /
|
cd /
|
||||||
|
|
||||||
# Postgres versions supported by Travis CI
|
if (( "$TEST_PRESENT" )); then
|
||||||
if (( ! "$DONT_TEST_PRESENT" )); then
|
if [[ ${TRAVIS_CPU_ARCH} == "arm64" ]]; then
|
||||||
|
# Postgres versions supported by ARM64
|
||||||
|
create 10
|
||||||
|
else
|
||||||
create 12
|
create 12
|
||||||
create 11
|
create 11
|
||||||
create 10
|
create 10
|
||||||
create 9.6
|
create 9.6
|
||||||
create 9.5
|
create 9.5
|
||||||
create 9.4
|
create 9.4
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Unsupported postgres versions that we still support
|
# Unsupported postgres versions that we still support
|
||||||
# Images built by https://github.com/psycopg/psycopg2-wheels/tree/build-dinosaurs
|
# Images built by https://github.com/psycopg/psycopg2-wheels/tree/build-dinosaurs
|
||||||
if (( "$TEST_PAST" )); then
|
if (( "$TEST_PAST" )); then
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
|
|
||||||
set -e -x
|
set -e -x
|
||||||
|
|
||||||
|
export TEST_PAST=${TEST_PAST:-0}
|
||||||
|
export TEST_FUTURE=${TEST_FUTURE:-0}
|
||||||
|
export TEST_VERBOSE=${TEST_VERBOSE:-0}
|
||||||
|
export PSYCOPG2_TEST_FAST=${PSYCOPG2_TEST_FAST:-0}
|
||||||
|
export TEST_PRESENT=${TEST_PRESENT:-1}
|
||||||
|
|
||||||
run_test () {
|
run_test () {
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
DBNAME=psycopg2_test
|
DBNAME=psycopg2_test
|
||||||
|
@ -44,16 +50,20 @@ run_test () {
|
||||||
$VERBOSE
|
$VERBOSE
|
||||||
}
|
}
|
||||||
|
|
||||||
# Postgres versions supported by Travis CI
|
if (( "$TEST_PRESENT" )); then
|
||||||
if (( ! "$DONT_TEST_PRESENT" )); then
|
if [[ "${TRAVIS_CPU_ARCH}" == "arm64" ]]; then
|
||||||
|
# Postgres versions supported by ARM64
|
||||||
|
run_test 10
|
||||||
|
else
|
||||||
|
# Postgres versions supported by Travis CI
|
||||||
run_test 12
|
run_test 12
|
||||||
run_test 11
|
run_test 11
|
||||||
run_test 10
|
run_test 10
|
||||||
run_test 9.6
|
run_test 9.6
|
||||||
run_test 9.5
|
run_test 9.5
|
||||||
run_test 9.4
|
run_test 9.4
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Unsupported postgres versions that we still support
|
# Unsupported postgres versions that we still support
|
||||||
# Images built by https://github.com/psycopg/psycopg2-wheels/tree/build-dinosaurs
|
# Images built by https://github.com/psycopg/psycopg2-wheels/tree/build-dinosaurs
|
||||||
if (( "$TEST_PAST" )); then
|
if (( "$TEST_PAST" )); then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user