forked from hapostgres/pg_auto_failover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (77 loc) · 2.95 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
sudo: required
dist: focal
language: c
python:
- "3.7"
cache:
apt: true
directories:
- /home/travis/postgresql
services:
- docker
matrix:
fast_finish: true
include:
- env: PGVERSION=10 TEST=multi
- env: PGVERSION=11 TEST=multi
- env: PGVERSION=12 TEST=multi
- env: PGVERSION=13 TEST=multi
- env: PGVERSION=14 TEST=multi
- env: PGVERSION=10 TEST=single
- env: PGVERSION=11 TEST=single
- env: PGVERSION=12 TEST=single
- env: PGVERSION=13 TEST=single
- env: PGVERSION=14 TEST=single
- env: PGVERSION=11 CITUSVERSION=10.0 TEST=citus
- env: PGVERSION=12 CITUSVERSION=10.1 TEST=citus
- env: PGVERSION=13 CITUSVERSION=10.1 TEST=citus
- env: PGVERSION=10 TEST=monitor
- env: PGVERSION=11 TEST=monitor
- env: PGVERSION=12 TEST=monitor
- env: PGVERSION=13 TEST=monitor
- env: PGVERSION=14 TEST=monitor
- env: PGVERSION=10 TEST=ssl
- env: PGVERSION=11 TEST=ssl
- env: PGVERSION=12 TEST=ssl
- env: PGVERSION=13 TEST=ssl
- env: PGVERSION=14 TEST=ssl
- env: PGVERSION=14 TEST=tablespaces DOCKERTEST=true
- env: LINTING=true
before_install:
- git clone -b v0.7.18 --depth 1 https://github.com/citusdata/tools.git
- sudo make -C tools install
- 'if [ -z "$LINTING" ]; then curl https://install.citusdata.com/community/deb.sh | sudo bash; fi'
- 'if [ -z "$LINTING" ]; then setup_apt; fi'
- 'if [ -z "$LINTING" ]; then nuke_pg; fi'
- python --version
- python3 --version
- sudo apt-get install liblz4-1
- sudo apt-get install liblz4-dev
- sudo apt-get install bridge-utils
- sudo apt-get install python3-pip
- sudo apt-get install python3-nose
- sudo apt-get install python3-psycopg2
- sudo apt-get install python3-setuptools
- sudo -H pip3 install pyroute2>=0.5.17
- pip3 install --user black
install:
- 'if [ -n "$LINTING" ]; then install_uncrustify; fi'
# cleanup uncrustify build files
- 'if [ -n "$LINTING" ]; then rm -rf uncrustify*; fi'
- 'if [ -z "$LINTING" ]; then install_pg; fi'
- 'if [ -z "$LINTING" ]; then install_custom_pg; fi'
- 'if [ -z "$LINTING" ]; then sudo apt-get install postgresql-${PGVERSION}-citus-${CITUSVERSION}; fi'
- PIPENV_PIPFILE="${TRAVIS_BUILD_DIR}"/tests/Pipfile pipenv install --system --deploy
- env
- 'if [ -z "$LINTING" ]; then pg_config; fi'
- 'if [ -z "$LINTING" ]; then PATH=`pg_config --bindir`:$PATH which pg_ctl; fi'
script:
- 'if [ -n "$LINTING" ]; then citus_indent --check; fi'
- 'if [ -n "$LINTING" ]; then black --check .; fi'
- 'if [ -n "$LINTING" ]; then ci/banned.h.sh; fi'
- 'if [ -z "$LINTING"] && [ -z "$DOCKERTEST" ]; then make -j5 CFLAGS=-Werror; fi'
- 'if [ -z "$LINTING"] && [ -z "$DOCKERTEST" ]; then sudo make install; fi'
- 'if [ -z "$LINTING"] && [ -z "$DOCKERTEST" ]; then PATH=`pg_config --bindir`:$PATH make test; fi'
- 'if [ -n "$LINTING"] && [ -n "$DOCKERTEST" ]; then make test; fi'
after_script:
- 'if [ -n "$LINTING"] && [ -n "$DOCKERTEST" ]; then make -C tests/tablespaces teardown; fi'