Skip to content

Commit 3429ef1

Browse files
committed
Merge branch 'master' into issue_120
2 parents ad41956 + 703d311 commit 3429ef1

32 files changed

+4429
-845
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@
4747

4848
# Doc files
4949
/doc/*html
50+
51+
# Docker files
52+
/docker-compose.yml
53+
/Dockerfile
54+
/Dockerfile.in
55+
/run_tests.sh
56+
/make_dockerfile.sh
57+
/backup_restore.sh
58+
59+
# Misc
60+
.python-version

.travis.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,47 @@
1-
sudo: required
1+
os: linux
2+
3+
dist: bionic
4+
5+
language: c
26

37
services:
4-
- docker
8+
- docker
9+
10+
before_install:
11+
- cp travis/* .
12+
13+
install:
14+
- ./make_dockerfile.sh
15+
- docker-compose build
516

617
script:
7-
- docker run -v $(pwd):/tests --rm centos:7 /tests/travis/backup_restore.sh
18+
- docker-compose run tests
19+
# - docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
20+
# - docker run -v $(pwd):/tests --rm centos:7 /tests/travis/backup_restore.sh
21+
22+
notifications:
23+
email:
24+
on_success: change
25+
on_failure: always
26+
27+
# Default MODE is basic, i.e. all tests with PG_PROBACKUP_TEST_BASIC=ON
28+
env:
29+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE
30+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=archive
31+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=backup
32+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=compression
33+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=delta
34+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=locking
35+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=merge
36+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=page
37+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=replica
38+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=retention
39+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE MODE=restore
40+
- PG_VERSION=11 PG_BRANCH=REL_11_STABLE
41+
- PG_VERSION=10 PG_BRANCH=REL_10_STABLE
42+
- PG_VERSION=9.6 PG_BRANCH=REL9_6_STABLE
43+
- PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
44+
45+
jobs:
46+
allow_failures:
47+
- if: env(MODE) IN (archive, backup, delta, locking, merge, replica, retention, restore)

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ OBJS += src/pg_crc.o src/datapagemap.o src/receivelog.o src/streamutil.o \
1515

1616
EXTRA_CLEAN = src/pg_crc.c src/datapagemap.c src/datapagemap.h \
1717
src/receivelog.c src/receivelog.h src/streamutil.c src/streamutil.h \
18-
src/xlogreader.c
18+
src/xlogreader.c src/instr_time.h
1919

20-
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h
20+
INCLUDES = src/datapagemap.h src/streamutil.h src/receivelog.h src/instr_time.h
2121

2222
ifdef USE_PGXS
2323
PG_CONFIG = pg_config
@@ -60,6 +60,8 @@ all: checksrcdir $(INCLUDES);
6060

6161
$(PROGRAM): $(OBJS)
6262

63+
src/instr_time.h: $(top_srcdir)/src/include/portability/instr_time.h
64+
rm -f $@ && $(LN_S) $(srchome)/src/include/portability/instr_time.h $@
6365
src/datapagemap.c: $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
6466
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_rewind/datapagemap.c $@
6567
src/datapagemap.h: $(top_srcdir)/src/bin/pg_rewind/datapagemap.h

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.com/postgrespro/pg_probackup.svg?branch=master)](https://travis-ci.com/postgrespro/pg_probackup)
2+
13
# pg_probackup
24

35
`pg_probackup` is a utility to manage backup and recovery of PostgreSQL database clusters. It is designed to perform periodic backups of the PostgreSQL instance that enable you to restore the server in case of a failure.
@@ -38,8 +40,9 @@ Regardless of the chosen backup type, all backups taken with `pg_probackup` supp
3840

3941
`PTRACK` backup support provided via following options:
4042
* vanilla PostgreSQL compiled with ptrack patch. Currently there are patches for [PostgreSQL 9.6](https://gist.githubusercontent.com/gsmol/5b615c971dfd461c76ef41a118ff4d97/raw/e471251983f14e980041f43bea7709b8246f4178/ptrack_9.6.6_v1.5.patch) and [PostgreSQL 10](https://gist.githubusercontent.com/gsmol/be8ee2a132b88463821021fd910d960e/raw/de24f9499f4f314a4a3e5fae5ed4edb945964df8/ptrack_10.1_v1.5.patch)
41-
* Postgres Pro Standard 9.6, 10, 11
42-
* Postgres Pro Enterprise 9.6, 10, 11
43+
* vanilla PostgreSQL 12 with [ptrack extension](https://github.com/postgrespro/ptrack)
44+
* Postgres Pro Standard 9.6, 10, 11, 12
45+
* Postgres Pro Enterprise 9.6, 10, 11, 12
4346

4447
## Limitations
4548

0 commit comments

Comments
 (0)