Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ee8b3e8

Browse files
authored
Stable11 ci (#30)
Add CI script to automatize 'make check' on each commit
1 parent beb8262 commit ee8b3e8

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'C/C++ CI for the stable11'
2+
3+
on:
4+
push:
5+
branches: [ stable11 ]
6+
pull_request:
7+
branches: [ stable11 ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: pg
16+
run: |
17+
echo "Deploying to production server on branch $GITHUB_REF"
18+
git config --global user.email "ci@postgrespro.ru"
19+
git config --global user.name "CI PgPro admin"
20+
git clone https://github.com/postgres/postgres.git pg
21+
cd pg
22+
git checkout REL_11_STABLE
23+
./configure --prefix=`pwd`/tmp_install
24+
git subtree add --prefix=contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF
25+
patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg11.patch
26+
make -j4 > /dev/null && make -j4 -C contrib > /dev/null
27+
make -C contrib/aqo check
28+
29+
git reset --hard HEAD
30+
git clean -fdx
31+
32+
# Test for PG10
33+
git checkout REL_10_STABLE
34+
./configure --prefix=`pwd`/tmp_install
35+
git subtree add --prefix=contrib/aqo https://github.com/postgrespro/aqo.git $GITHUB_REF
36+
patch -p1 --no-backup-if-mismatch < contrib/aqo/aqo_pg11.patch
37+
make -j4 > /dev/null && make -j4 -C contrib > /dev/null
38+
make -C contrib/aqo check

0 commit comments

Comments
 (0)