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

Commit c596089

Browse files
committed
Try to optimize tests
1 parent 8de8b0e commit c596089

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Dockerfile.tmpl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@ FROM postgres:${PG_VERSION}-alpine
22

33
ENV LANG=C.UTF-8 PGDATA=/pg/data
44

5-
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' > /etc/apk/repositories && \
6-
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories && \
5+
RUN if [ "${CHECK_CODE}" = "clang" ] ; then \
6+
apk --no-cache add clang-analyzer --repository http://dl-3.alpinelinux.org/alpine/edge/main; \
7+
fi
8+
9+
RUN if [ "${CHECK_CODE}" = "cppcheck" ] ; then \
10+
apk --no-cache add cppcheck --repository http://dl-cdn.alpinelinux.org/alpine/v3.6/community \
11+
fi
12+
13+
RUN if [ "${CHECK_CODE}" = "false" ] ; then \
714
apk --no-cache add python3 gcc make musl-dev cppcheck && \
8-
apk --no-cache add clang-analyzer --repository http://dl-3.alpinelinux.org/alpine/edge/main/ && \
915
pip3 install testgres && \
10-
mkdir -p /pg/data && \
16+
fi
17+
18+
RUN mkdir -p /pg/data && \
1119
mkdir /pg/pg_pathman && \
1220
chown postgres:postgres ${PGDATA} && \
1321
chmod a+rwx /usr/local/lib/postgresql && \

0 commit comments

Comments
 (0)