- Notifications
You must be signed in to change notification settings - Fork49
Attempt to revive Travis.#53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Don't send some content to the Docker host when building | ||
travis | ||
.git | ||
.travis.yml | ||
*.gcno | ||
*.gcda | ||
*.gcov | ||
*.so | ||
*.o |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,6 +2,7 @@ | ||
/log/ | ||
/results/ | ||
/tmp_check/ | ||
*.bc | ||
*.so | ||
*.o | ||
jsquery_gram.c | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
os: linux | ||
dist: jammy | ||
language: c | ||
services: | ||
- docker | ||
env: | ||
- PG_VER=17 | ||
- PG_VER=16 | ||
- PG_VER=15 | ||
- PG_VER=14 | ||
- PG_VER=13 | ||
- PG_VER=12 | ||
- PG_VER=11 | ||
- PG_VER=10 | ||
#- PG_VER=9.6 | ||
#- PG_VER=9.5 | ||
#- PG_VER=9.4 | ||
jobs: | ||
allow_failures: | ||
- env: PG_VER=12 | ||
- env: PG_VER=11 | ||
- env: PG_VER=10 | ||
before_install: cp travis/* . | ||
install: | ||
- ./mk_dockerfile.sh | ||
- docker-compose build | ||
script: docker-compose run $(bash <(curl -s https://codecov.io/env)) tests |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM postgres:${PG_VERSION}-alpine | ||
# Install dependencies | ||
RUN apk add --no-cache \ | ||
linux-headers \ | ||
openssl curl \ | ||
perl perl-ipc-run perl-dev perl-app-cpanminus perl-dbi \ | ||
make musl-dev gcc bison flex coreutils \ | ||
zlib-dev libedit-dev \ | ||
pkgconf icu-dev clang clang15 clang-analyzer; | ||
# Environment | ||
ENV LANG=C.UTF-8 PGDATA=/pg/data | ||
# Make directories | ||
RUNmkdir -p ${PGDATA} && \ | ||
mkdir -p /pg/testdir | ||
COPY run_tests.sh /run.sh | ||
RUN chmod 755 /run.sh | ||
COPY . /pg/testdir | ||
WORKDIR /pg/testdir | ||
# Grant privileges | ||
RUNchown postgres:postgres ${PGDATA} && \ | ||
chown -R postgres:postgres /pg/testdir && \ | ||
chown postgres:postgres /usr/local/include/postgresql/server/ && \ | ||
chmod a+rwx /usr/local/lib/postgresql && \ | ||
chmod a+rwx /usr/local/share/postgresql/extension | ||
USER postgres | ||
ENTRYPOINT LEVEL=${LEVEL} /run.sh |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
tests: | ||
build: . |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if [ -z ${PG_VERSION+x} ]; then | ||
echo PG_VERSION is not set! | ||
exit 1 | ||
fi | ||
if [ -z ${LEVEL+x} ]; then | ||
LEVEL=standard | ||
fi | ||
echo PG_VERSION=${PG_VERSION} | ||
echo LEVEL=${LEVEL} | ||
sed \ | ||
-e 's/${PG_VERSION}/'${PG_VERSION}/g \ | ||
-e 's/${LEVEL}/'${LEVEL}/g \ | ||
Dockerfile.in > Dockerfile |
Uh oh!
There was an error while loading.Please reload this page.