-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.cirrus.yml
76 lines (69 loc) · 1.77 KB
/
.cirrus.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
task:
name: Linux - Debian Bullseye - Autoconf
env:
CPUS: 4
BUILD_JOBS: 4
CCACHE_DIR: /tmp/ccache_dir
CFLAGS: -Og -g3
CXXFLAGS: $CFLAGS
CC: ccache gcc
CXX: ccache g++
matrix:
- PGBRANCH: master
- PGBRANCH: REL_17_STABLE
- PGBRANCH: REL_16_STABLE
- PGBRANCH: REL_15_STABLE
- PGBRANCH: REL_14_STABLE
- PGBRANCH: REL_13_STABLE
- PGBRANCH: REL_12_STABLE
PGHOME: /tmp/postgres-${PGBRANCH}
compute_engine_instance:
image_project: pg-ci-images
image: family/pg-ci-bullseye
platform: linux
cpu: $CPUS
memory: 4G
ccache_cache:
folder: ${CCACHE_DIR}
sysinfo_script: |
id
uname -a
cat /proc/cmdline
ulimit -a -H && ulimit -a -S
export
create_user_script: |
useradd -m postgres
chown -R postgres:postgres .
mkdir -p ${CCACHE_DIR}
chown -R postgres:postgres ${CCACHE_DIR}
echo '* - memlock 134217728' > /etc/security/limits.d/postgres.conf
su postgres -c "ulimit -l -H && ulimit -l -S"
setup_core_files_script: |
mkdir -m 770 /tmp/cores
chown root:postgres /tmp/cores
sysctl kernel.core_pattern='/tmp/cores/%e-%s-%p.core'
configure_script: |
su postgres <<-EOF
git clone https://github.com/postgres/postgres.git
cd ./postgres
git checkout ${PGBRANCH}
./configure --prefix=${PGHOME} --enable-cassert
EOF
build_script: |
su postgres <<-EOF
cd ./postgres
make -j${BUILD_JOBS}
EOF
upload_caches: ccache
install_script: |
su postgres <<-EOF
cd ./postgres
make install
EOF
test_script: |
su postgres <<-EOF
export PATH=${PGHOME}/bin:${PATH}
make PG_CONFIG=${PGHOME}/bin/pg_config
make PG_CONFIG=${PGHOME}/bin/pg_config dist
make check
EOF