Skip to content

Commit 1f0ff32

Browse files
committed
[wip] travis: properly kill postgres process
[skip appveyor]
1 parent 784589c commit 1f0ff32

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis/install_postgres.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ fi
3636
# Create a new database dir, create database test and register extensions
3737
$POSTGRES/bin/initdb -D $TRAVIS_BUILD_DIR/db
3838
$POSTGRES/bin/postgres -D $TRAVIS_BUILD_DIR/db -p 12345 &
39+
POSTGRES_PID=$!
40+
3941
sleep 1
4042
$POSTGRES/bin/createdb -p 12345 test
4143
$POSTGRES/bin/psql test -c 'CREATE EXTENSION quantile;' -p 12345

.travis/stage_after_success.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
if [ "$POSTGRES_PID" ]; then
3+
kill $POSTGRES_PID && wait $POSTGRES_PID
4+
fi
5+
26
[ "$RUN_PYLINT" ] && return 0 # Nothing to do
37

48
if [ "$BUILD_DOCS" ] &&

0 commit comments

Comments
 (0)