Skip to content

Commit

Permalink
Actually run against the version of the DB we select in the matrix. (#…
Browse files Browse the repository at this point in the history
…12591)

Due to a bug in Breeze initialization code, we were always running
against Postgres 9.6 and MySQL 5.7, even when the matrix selected
something else.

(We were overwriting the POSTGRES_VERSION and MYSQL_VERSION environment
variables in initialization code)

(cherry picked from commit 54adda5)
  • Loading branch information
ashb authored and kaxil committed Nov 27, 2020
1 parent 2a7944d commit ca53e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/libraries/_initialization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ function initialization::initialize_base_variables() {
export CURRENT_MYSQL_VERSIONS

# Default Postgres versions
export POSTGRES_VERSION=${CURRENT_POSTGRES_VERSIONS[0]}
export POSTGRES_VERSION=${POSTGRES_VERSION:=${CURRENT_POSTGRES_VERSIONS[0]}}

# Default MySQL versions
export MYSQL_VERSION=${CURRENT_MYSQL_VERSIONS[0]}
export MYSQL_VERSION=${MYSQL_VERSION:=${CURRENT_MYSQL_VERSIONS[0]}}

# If set to true, the database will be reset at entry. Works for Postgres and MySQL
export DB_RESET=${DB_RESET:="false"}
Expand Down

0 comments on commit ca53e70

Please sign in to comment.