Skip to content

Commit 5d34026

Browse files
committed
Add first version of script that creates docker containers and uploads them to docker hub
1 parent 44e180d commit 5d34026

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ services:
1010
- docker
1111

1212
install:
13-
- sed -e 's/${CHECK_CODE}/'${CHECK_CODE}/g -e 's/${PG_VERSION}/'${PG_VERSION}/g Dockerfile.tmpl > Dockerfile
13+
- echo "FROM ${DOCKER_IMAGE}" > Dockerfile
1414
- docker-compose build
1515

1616
script:
1717
- docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
1818

1919
env:
20-
- PG_VERSION=10 CHECK_CODE=clang
21-
- PG_VERSION=9.6 CHECK_CODE=clang
22-
- PG_VERSION=9.5 CHECK_CODE=clang
23-
- PG_VERSION=10 CHECK_CODE=cppcheck
24-
- PG_VERSION=9.6 CHECK_CODE=cppcheck
25-
- PG_VERSION=9.5 CHECK_CODE=cppcheck
26-
- PG_VERSION=10 CHECK_CODE=false
27-
- PG_VERSION=9.6 CHECK_CODE=false
28-
- PG_VERSION=9.5 CHECK_CODE=false
20+
- DOCKER_IMAGE=pg95_clang_check_code

Dockerfile.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ RUN mkdir -p /pg/data && \
2323
chmod a+rwx /usr/local/lib/postgresql && \
2424
chmod a+rwx /usr/local/share/postgresql/extension
2525

26-
ADD . /pg/pg_pathman
27-
WORKDIR /pg/pg_pathman
28-
RUN chmod -R go+rwX /pg/pg_pathman
29-
USER postgres
30-
ENTRYPOINT PGDATA=${PGDATA} CHECK_CODE=${CHECK_CODE} bash run_tests.sh
26+
ONBUILD ADD . /pg/pg_pathman
27+
ONBUILD WORKDIR /pg/pg_pathman
28+
ONBUILD RUN chmod -R go+rwX /pg/pg_pathman
29+
ONBUILD USER postgres
30+
ONBUILD ENTRYPOINT PGDATA=${PGDATA} CHECK_CODE=${CHECK_CODE} bash run_tests.sh

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy