[postgis-tickets] r17612 - Make berrie script a bit more generic and add regular make check as well

Regina Obe lr at pcorp.us
Tue Jul 16 02:42:00 PDT 2019


Author: robe
Date: 2019-07-16 14:42:00 -0700 (Tue, 16 Jul 2019)
New Revision: 17612

Modified:
   trunk/ci/berrie/pg_init_start.sh
   trunk/ci/berrie/postgis_regress.sh
Log:
Make berrie script a bit more generic and add regular make check as well

Modified: trunk/ci/berrie/pg_init_start.sh
===================================================================
--- trunk/ci/berrie/pg_init_start.sh	2019-07-16 15:28:56 UTC (rev 17611)
+++ trunk/ci/berrie/pg_init_start.sh	2019-07-16 21:42:00 UTC (rev 17612)
@@ -1,18 +1,18 @@
 #Berrie is a 32-bit Rasberry Pi managed by Bruce Rindahl
 #This is script to launch custom compiled PostgreSQL
+#export label=berrie #this is passed in via Jenkins
 export WORKSPACE=/home/jenkins/workspace
 
-cd ${WORKSPACE}/PostGIS_Worker_Run/label/berrie/$BRANCH
+
+
 export OS_BUILD=32
 export PG_VER=12
-export PGPATH=${WORKSPACE}/pg/label/berrie/rel/pg${PG_VER}w${OS_BUILD}
+export PGPATH=${WORKSPACE}/pg/label/${label}/rel/pg${PG_VER}w${OS_BUILD}
 export PATH=${PATH}:${PGPATH}/bin:${PGPATH}/lib
 export PGPORT=55432
 export PGDATA=$PGPATH/data_${PGPORT}
 export PGLOG="$PGDATA/pgsql.log"
-# What to use to start up the postmaster (we do NOT use pg_ctl for this,
-# as it adds no value and can cause the postmaster to misrecognize a stale
-# lock file)
+# What to use to start up the postmaster
 DAEMON="$PGPATH/bin/pg_ctl -D $PGDATA -l logfile start"
 
 # What to use to shut down the postmaster
@@ -32,6 +32,7 @@
 
 echo -n "Starting PostgreSQL: "
 $DAEMON &
+#sleep a bit because sometimes postgres takes a bit to start up
 sleep 20
 echo "ok"
 exit 0
\ No newline at end of file

Modified: trunk/ci/berrie/postgis_regress.sh
===================================================================
--- trunk/ci/berrie/postgis_regress.sh	2019-07-16 15:28:56 UTC (rev 17611)
+++ trunk/ci/berrie/postgis_regress.sh	2019-07-16 21:42:00 UTC (rev 17612)
@@ -1,12 +1,15 @@
-#Berrie is a 32-bit Rasberry Pi managed by Bruce Rindahl
-#BRANCH is passed in via jenkins which is set via gitea web hook
+#bessie is a 32-bit Rasberry Pi managed by Bruce Rindahl
+## BRANCH is passed in via jenkins which is set via gitea web hook
 #export BRANCH=618a67b1d6fc223dd5a4c0b02c824939f21dbd65
+## label is set by jenkins
+#export label=${label}
+
 export WORKSPACE=/home/jenkins/workspace
 
-cd ${WORKSPACE}/PostGIS_Worker_Run/label/berrie/$BRANCH
+cd ${WORKSPACE}/PostGIS_Worker_Run/label/${label}/$BRANCH
 export OS_BUILD=32
 export PG_VER=12
-export PGPATH=${WORKSPACE}/pg/label/berrie/rel/pg${PG_VER}w${OS_BUILD}
+export PGPATH=${WORKSPACE}/pg/label/${label}/rel/pg${PG_VER}w${OS_BUILD}
 
 export PATH=${PATH}:${PGPATH}/bin:${PGPATH}/lib
 export PGPORT=55432
@@ -16,9 +19,9 @@
 sh autogen.sh
 ./configure --with-pgconfig=${PGPATH}/bin/pg_config
 #make clean
-#make
+make
 
-#make check RUNTESTFLAGS="-v"
+make check RUNTESTFLAGS="-v"
 make install
 make check RUNTESTFLAGS="-v --extension"
 



More information about the postgis-tickets mailing list