Skip to content

Commit

Permalink
(CI/update) fixing test Test old version before update
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Dec 19, 2024
1 parent 45f2729 commit 59973b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ jobs:
cmake -DPOSTGRESQL_VERSION=${PGVER} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
make -j 4
sudo make install
sudo service postgresql start
createdb -p "${PGPORT}" ___pgr___test___
psql -p "${PGPORT}" -d ___pgr___test___ -c "CREATE EXTENSION pgrouting CASCADE;"
- name: Test old version before update with current tests
run: |
sudo service postgresql start
createdb -p "${PGPORT}" ___pgr___test___
psql -p "${PGPORT}" -d ___pgr___test___ -c "CREATE EXTENSION pgrouting CASCADE;"
psql -p "${PGPORT}" -d ___pgr___test___ -c "SELECT * FROM pgr_full_version();"
DIR=$(git rev-parse --show-toplevel)
bash "${DIR}/tools/testers/setup_db.sh" "${PGPORT}" ___pgr___test___ "${PG_RUNNER_USER}" "${{ matrix.old_pgr }}"
psql -p "${PGPORT}" -d ___pgr___test___ -c "SELECT * FROM pgr_full_version();"
pg_prove -Q -f --normalize --directives --recurse -U "${PG_RUNNER_USER}" -d ___pgr___test___ "pgtap"
- name: Build current version
Expand All @@ -118,8 +118,11 @@ jobs:
- name: Test old version with currrent tests after installing current
run: |
sudo service postgresql start
psql -p "${PGPORT}" -d ___pgr___test___ -c "SELECT * FROM pgr_full_version();"
dropdb -p "${PGPORT}" ___pgr___test___
createdb -p "${PGPORT}" ___pgr___test___
DIR=$(git rev-parse --show-toplevel)
bash "${DIR}/tools/testers/setup_db.sh" "${PGPORT}" ___pgr___test___ "${PG_RUNNER_USER}" "${{ matrix.old_pgr }}"
psql -p "${PGPORT}" -d ___pgr___test___ -c "SELECT * FROM pgr_full_version();"
pg_prove -Q -f --normalize --directives --recurse -U "${PG_RUNNER_USER}" -d ___pgr___test___ "pgtap"
- name: Test old version with current tests after update
Expand Down

0 comments on commit 59973b5

Please sign in to comment.