Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2fa47cf

Browse files
committed
[skip travis] test packages for std|ent
1 parenta427694 commit2fa47cf

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

‎packaging/test/scripts/alt_forks.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -o pipefail
1010

1111
ulimit -n 1024
1212

13-
if [${EDITION}=='ent' ];then
13+
if [${PBK_EDITION}=='ent' ];then
1414
exit 0
1515
fi
1616

‎packaging/test/scripts/deb_forks.sh‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -o pipefail
1111
# fix https://github.com/moby/moby/issues/23137
1212
ulimit -n 1024
1313

14-
if [${EDITION}=='ent' ];then
14+
if [${PBK_EDITION}=='ent' ];then
1515
exit 0
1616
fi
1717

@@ -57,7 +57,7 @@ if [ ${PG_VERSION} == '9.6' ]; then
5757
fi
5858

5959
# install POSTGRESPRO
60-
if [${EDITION}=='std' ];then
60+
if [${PBK_EDITION}=='std' ];then
6161
sh -c'echo "deb https://repo.postgrespro.ru/pgpro-${PG_VERSION}/${DISTRIB}/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/pgpro.list'
6262
wget --quiet -O - https://repo.postgrespro.ru/pgpro-${PG_VERSION}/keys/GPG-KEY-POSTGRESPRO| apt-key add -
6363
apt-get update -y
@@ -78,31 +78,31 @@ echo "deb [arch=amd64] http://repo.postgrespro.ru/pg_probackup-forks/deb/ $(lsb_
7878
/etc/apt/sources.list.d/pg_probackup-old.list
7979
wget -O - http://repo.postgrespro.ru/pg_probackup-forks/keys/GPG-KEY-PG_PROBACKUP| apt-key add -&& apt-get update
8080

81-
apt-get install -y pg-probackup-${EDITION}-${PG_VERSION}
82-
pg_probackup-${EDITION}-${PG_VERSION} --help
83-
pg_probackup-${EDITION}-${PG_VERSION} --version
81+
apt-get install -y pg-probackup-${PBK_EDITION}-${PG_VERSION}
82+
pg_probackup-${PBK_EDITION}-${PG_VERSION} --help
83+
pg_probackup-${PBK_EDITION}-${PG_VERSION} --version
8484

8585

86-
if [${EDITION}=='std' ];then
86+
if [${PBK_EDITION}=='std' ];then
8787
export PGDATA=/tmp/data
8888
su postgres -c"${BINDIR}/initdb -k -D${PGDATA}"
89-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} init -B /tmp/backup"
90-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} add-instance --instance=node -B /tmp/backup -D${PGDATA}"
89+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} init -B /tmp/backup"
90+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} add-instance --instance=node -B /tmp/backup -D${PGDATA}"
9191

9292
echo"wal_level=hot_standby">>${PGDATA}/postgresql.auto.conf
9393
echo"fsync=off">>${PGDATA}/postgresql.auto.conf
9494
echo"archive_mode=on">>${PGDATA}/postgresql.auto.conf
95-
echo"archive_command='pg_probackup-${EDITION}-${PG_VERSION} archive-push --no-sync -B /tmp/backup compress --instance=node --wal-file-path %p --wal-file-name %f'">>${PGDATA}/postgresql.auto.conf
95+
echo"archive_command='pg_probackup-${PBK_EDITION}-${PG_VERSION} archive-push --no-sync -B /tmp/backup compress --instance=node --wal-file-path %p --wal-file-name %f'">>${PGDATA}/postgresql.auto.conf
9696

9797
su postgres -c"${BINDIR}/pg_ctl stop -w -t 60 -D /var/lib/pgpro/std-${PG_VERSION}/data"||echo"it is all good"
9898
su postgres -c"${BINDIR}/pg_ctl start -D${PGDATA}"
9999
sleep 5
100-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} backup --instance=node -b full -B /tmp/backup -D${PGDATA} --no-sync"
101-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA}"
102-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA} --archive"
100+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} backup --instance=node -b full -B /tmp/backup -D${PGDATA} --no-sync"
101+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA}"
102+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA} --archive"
103103

104104
su postgres -c"${BINDIR}/pgbench --no-vacuum -i -s 5"
105-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} backup --instance=node -b page -B /tmp/backup -D${PGDATA} --no-sync"
105+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} backup --instance=node -b page -B /tmp/backup -D${PGDATA} --no-sync"
106106
fi
107107

108108
# install new packages
@@ -111,42 +111,42 @@ echo "deb [arch=amd64] http://test.postgrespro.ru/pg_probackup-forks/deb/ $(lsb_
111111
wget -O - http://test.postgrespro.ru/pg_probackup-forks/keys/GPG-KEY-PG_PROBACKUP| apt-key add -
112112
apt-get update -y
113113

114-
#if [ ${EDITION} == 'std' ] && [ ${PG_VERSION} == '9.6' ]; then
115-
# apt-get install -y libpq5 pg-probackup-${EDITION}-${PG_VERSION}
114+
#if [ ${PBK_EDITION} == 'std' ] && [ ${PG_VERSION} == '9.6' ]; then
115+
# apt-get install -y libpq5 pg-probackup-${PBK_EDITION}-${PG_VERSION}
116116
#else
117-
# apt-get install -y pg-probackup-${EDITION}-${PG_VERSION}
117+
# apt-get install -y pg-probackup-${PBK_EDITION}-${PG_VERSION}
118118
#fi
119119

120-
apt-get install -y pg-probackup-${EDITION}-${PG_VERSION}
120+
apt-get install -y pg-probackup-${PBK_EDITION}-${PG_VERSION}
121121

122122
# in Ent 11 and 10 because of PQselect vanilla libpq5 is incompatible with Ent pg_probackup
123-
if [${EDITION}=='ent' ];then
123+
if [${PBK_EDITION}=='ent' ];then
124124
if [${PG_VERSION}=='11' ]|| [${PG_VERSION}=='10' ]|| [${PG_VERSION}=='9.6' ];then
125125
exit 0
126126
fi
127127
fi
128128

129-
pg_probackup-${EDITION}-${PG_VERSION} --help
130-
pg_probackup-${EDITION}-${PG_VERSION} --version
129+
pg_probackup-${PBK_EDITION}-${PG_VERSION} --help
130+
pg_probackup-${PBK_EDITION}-${PG_VERSION} --version
131131

132-
if [${EDITION}=='ent' ];then
132+
if [${PBK_EDITION}=='ent' ];then
133133
exit 0
134134
fi
135135

136-
if [${EDITION}=='std' ]&& [${PG_VERSION}=='9.6' ];then
136+
if [${PBK_EDITION}=='std' ]&& [${PG_VERSION}=='9.6' ];then
137137
exit 0
138138
fi
139139

140140

141141
#if [ ${CODENAME} == 'precise' ] && [ ${PG_VERSION} != '10' ] && [ ${PG_VERSION} != '11' ]; then
142142
su postgres -c"${BINDIR}/pgbench --no-vacuum -t 1000 -c 1"
143-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} backup --instance=node -b page -B /tmp/backup -D${PGDATA}"
144-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA}"
143+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} backup --instance=node -b page -B /tmp/backup -D${PGDATA}"
144+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} show --instance=node -B /tmp/backup -D${PGDATA}"
145145

146146
su postgres -c"${BINDIR}/pg_ctl stop -w -t 60 -D${PGDATA}"
147147
rm -rf${PGDATA}
148148

149-
su postgres -c"pg_probackup-${EDITION}-${PG_VERSION} restore --instance=node -B /tmp/backup -D${PGDATA}"
149+
su postgres -c"pg_probackup-${PBK_EDITION}-${PG_VERSION} restore --instance=node -B /tmp/backup -D${PGDATA}"
150150
su postgres -c"${BINDIR}/pg_ctl start -w -t 60 -D${PGDATA}"
151151

152152
sleep 5

‎packaging/test/scripts/pg_probackup_forks_rpm.sh‎renamed to ‎packaging/test/scripts/rpm_forks.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ulimit -n 1024
1313

1414
PG_TOG=$(echo$PG_VERSION| sed's|\.||g')
1515

16-
if [${EDITION}=='ent' ];then
16+
if [${PBK_EDITION}=='ent' ];then
1717
exit 0
1818
fi
1919

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp