#!/usr/bin/env bash set -e set -o pipefail SCRIPT_DIR=$(dirname $0) # Prior to version 0.5.0, TimescaleDB did not fully support most constraints # so we don't include update tests that test constraint support in pre-0.5.0 # versions. TAGS="0.1.0 0.2.0 0.3.0 0.4.0 0.4.1 0.4.2" TEST_VERSION="v1" TAGS=$TAGS TEST_VERSION=$TEST_VERSION bash ${SCRIPT_DIR}/test_updates.sh EXIT_CODE=$? if [ $EXIT_CODE -ne 0 ]; then exit $EXIT_CODE fi # Starting with version 0.5.0, TimescaleDB had support for most constraints, # including foreign keys from the hypertable to another table. In order to test # this, we updated the testing files to include a few of these constraints. # However, since support in earlier versions was incomplete, we don't run to # try upgrading from pre-0.5.0 since it is not guaranteed to work. Hence we # use a different update test script. TAGS="0.5.0 0.6.0 0.6.1 0.7.0-pg9.6 0.7.1-pg9.6 0.8.0-pg9.6 0.9.0-pg9.6 0.9.1-pg9.6 0.9.2-pg9.6 0.10.0-pg9.6 0.10.1-pg9.6 0.11.0-pg9.6 0.12.0-pg9.6 1.0.0-pg9.6 1.0.1-pg9.6 1.1.0-pg9.6 1.1.1-pg9.6 1.2.0-pg9.6 1.2.1-pg9.6 1.2.2-pg9.6" TEST_VERSION="v2" TAGS=$TAGS TEST_VERSION=$TEST_VERSION bash ${SCRIPT_DIR}/test_updates.sh EXIT_CODE=$? if [ $EXIT_CODE -ne 0 ]; then exit $EXIT_CODE fi TAGS="1.3.0-pg9.6 1.3.1-pg9.6 1.3.2-pg9.6 1.4.0-pg9.6 1.4.1-pg9.6 1.4.2-pg9.6 1.5.0-pg9.6 1.5.1-pg9.6 1.6.0-pg9.6 1.6.1-pg9.6" TEST_VERSION="v3" TAGS=$TAGS TEST_VERSION=$TEST_VERSION bash ${SCRIPT_DIR}/test_updates.sh EXIT_CODE=$? if [ $EXIT_CODE -ne 0 ]; then exit $EXIT_CODE fi