File tree Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Expand file tree Collapse file tree 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,22 @@ services:
10
10
- docker
11
11
12
12
install :
13
- - sed -e 's/${CHECK_CODE}/'${CHECK_CODE}/g -e 's/${CC }/'${CC }/g -e 's/${PG_VERSION}/'${PG_VERSION}/g Dockerfile.tmpl > Dockerfile
13
+ - sed -e 's/${CHECK_CODE}/'${CHECK_CODE}/g -e 's/${COMPILER }/'${COMPILER }/g -e 's/${PG_VERSION}/'${PG_VERSION}/g Dockerfile.tmpl > Dockerfile
14
14
- docker-compose build
15
15
16
16
script :
17
17
- docker-compose run tests
18
18
19
19
env :
20
- - PG_VERSION=10 CHECK_CODE=true CC =clang
21
- - PG_VERSION=9.6 CHECK_CODE=true CC =clang
22
- - PG_VERSION=9.5 CHECK_CODE=true CC =clang
23
- - PG_VERSION=10 CHECK_CODE=true CC =gcc
24
- - PG_VERSION=10 CHECK_CODE=false CC =gcc
25
- - PG_VERSION=9.6 CHECK_CODE=true CC =gcc
26
- - PG_VERSION=9.6 CHECK_CODE=false CC =gcc
27
- - PG_VERSION=9.5 CHECK_CODE=true CC =gcc
28
- - PG_VERSION=9.5 CHECK_CODE=false CC =gcc
20
+ - PG_VERSION=10 CHECK_CODE=true COMPILER =clang
21
+ - PG_VERSION=9.6 CHECK_CODE=true COMPILER =clang
22
+ - PG_VERSION=9.5 CHECK_CODE=true COMPILER =clang
23
+ - PG_VERSION=10 CHECK_CODE=true COMPILER =gcc
24
+ - PG_VERSION=10 CHECK_CODE=false COMPILER =gcc
25
+ - PG_VERSION=9.6 CHECK_CODE=true COMPILER =gcc
26
+ - PG_VERSION=9.6 CHECK_CODE=false COMPILER =gcc
27
+ - PG_VERSION=9.5 CHECK_CODE=true COMPILER =gcc
28
+ - PG_VERSION=9.5 CHECK_CODE=false COMPILER =gcc
29
29
30
30
after_success :
31
31
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ENV LANG=C.UTF-8 PGDATA=/pg/data
4
4
5
5
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' > /etc/apk/repositories && \
6
6
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories && \
7
- apk --no-cache add python3 gcc make musl-dev cppcheck ${CC } && \
7
+ apk --no-cache add python3 gcc make musl-dev cppcheck ${COMPILER } && \
8
8
pip3 install testgres && \
9
9
mkdir -p /pg/data && \
10
10
mkdir /pg/pg_pathman && \
@@ -16,4 +16,4 @@ ADD . /pg/pg_pathman
16
16
WORKDIR /pg/pg_pathman
17
17
RUN chmod -R go+rwX /pg/pg_pathman
18
18
USER postgres
19
- ENTRYPOINT PGDATA=${PGDATA} CC =${CC } CHECK_CODE=${CHECK_CODE} bash run_tests.sh
19
+ ENTRYPOINT PGDATA=${PGDATA} COMPILER =${COMPILER } CHECK_CODE=${CHECK_CODE} bash run_tests.sh
Original file line number Diff line number Diff line change 3
3
set -eux
4
4
5
5
echo CC=$CC
6
+ echo COMPILER=$COMPILER
6
7
echo CHECK_CODE=$CHECK_CODE
7
8
echo PG_VERSION=$PG_VERSION
8
9
9
10
# perform code analysis if necessary
10
11
if [ $CHECK_CODE = " true" ]; then
11
12
12
- if [ " $CC " = " clang" ]; then
13
+ if [ " $COMPILER " = " clang" ]; then
13
14
scan-build --status-bugs make USE_PGXS=1 || status=$?
14
15
exit $status
15
16
16
- elif [ " $CC " = " gcc" ]; then
17
+ elif [ " $COMPILER " = " gcc" ]; then
17
18
cppcheck --template " {file} ({line}): {severity} ({id}): {message}" \
18
19
--enable=warning,portability,performance \
19
20
--suppress=redundantAssignment \
You can’t perform that action at this time.
0 commit comments