Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
sokolcati wants to merge2 commits intopostgrespro:master
base:master
Choose a base branch
Loading
fromsokolcati:master
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Second attempt to revive Travis + update copyright.
  • Loading branch information
Ekaterina Sokolova committedOct 23, 2024
commitc6a07adb886ba01cc6875c7ba26cb58398eef664
10 changes: 10 additions & 0 deletions.dockerignore
View file
Open in desktop
Original file line numberDiff line numberDiff 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
32 changes: 17 additions & 15 deletions.travis.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,33 +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
#- 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
- env: PG_VER=9.6
- env: PG_VER=9.5
- env: PG_VER=9.4

before_script:
- sudo apt-get -y install -qq wget ca-certificates
- travis/dep-ubuntu-postgres.sh
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends postgresql-client-${PG_VER} postgresql-${PG_VER} postgresql-server-dev-${PG_VER}
- sudo systemctl stop postgresql

script: travis/pg-travis-test.sh

before_install: cp travis/* .

install:
- ./mk_dockerfile.sh
- docker-compose build

script: docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
2 changes: 1 addition & 1 deletionLICENSE
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
JsQuery is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses.

Copyright (c) 2014-2018, Postgres Professional
Copyright (c) 2014-2024, Postgres Professional
Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
Portions Copyright (c) 1994, The Regents of the University of California

Expand Down
2 changes: 1 addition & 1 deletionjsonb_gin_ops.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Support GIN over jsonb with jsquery operation
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Alexander Korotkov <aekorotkov@gmail.com>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Definitions of jsquery datatype
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_constr.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Functions and operations to manipulate jsquery
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_extract.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Functions and operations to support jsquery in indexes
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Alexander Korotkov <aekorotkov@gmail.com>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_gram.y
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Grammar definitions for jsquery datatype
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_io.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*I/O functions for jsquery datatype
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2016-2021, Postgres Professional
* Portions Copyright (c) 2016-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_op.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Functions and operations over jsquery/jsonb datatypes
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_scan.l
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
* Lexical parser for jsquery datatype
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
2 changes: 1 addition & 1 deletionjsquery_support.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*Functions and operations to support jsquery
*
* Copyright (c) 2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2017-2021, Postgres Professional
* Portions Copyright (c) 2017-2024, Postgres Professional
* Author: Teodor Sigaev <teodor@sigaev.ru>
*
* IDENTIFICATION
Expand Down
33 changes: 33 additions & 0 deletionstravis/Dockerfile.in
View file
Open in desktop
Original file line numberDiff line numberDiff 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
4 changes: 0 additions & 4 deletionstravis/dep-ubuntu-postgres.sh
View file
Open in desktop

This file was deleted.

3 changes: 3 additions & 0 deletionstravis/docker-compose.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
services:
tests:
build: .
16 changes: 16 additions & 0 deletionstravis/mk_dockerfile.sh
View file
Open in desktop
Original file line numberDiff line numberDiff 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
21 changes: 0 additions & 21 deletionstravis/pg-travis-test.sh
View file
Open in desktop

This file was deleted.

50 changes: 50 additions & 0 deletionstravis/run_tests.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash

#
# Copyright (c) 2024, Postgres Professional
#
# supported levels:
#* standard
#

set -ev
status=0

# show pg_config just in case
pg_config

# build and install extension (using PG_CPPFLAGS and SHLIB_LINK for gcov)
make USE_PGXS=1 PG_CPPFLAGS="-coverage" SHLIB_LINK="-coverage" install

# initialize database
initdb -D $PGDATA

# set appropriate port
export PGPORT=55435
echo "port = $PGPORT" >> $PGDATA/postgresql.conf

# restart cluster 'test'
pg_ctl start -l /tmp/postgres.log -w || status=$?

# something's wrong, exit now!
if [ $status -ne 0 ]; then cat /tmp/postgres.log; exit 1; fi

# run regression tests
export PG_REGRESS_DIFF_OPTS="-w -U3" # for alpine's diff (BusyBox)
make USE_PGXS=1 installcheck || status=$?

# show diff if it exists
if test -f regression.diffs; then cat regression.diffs; fi

# something's wrong, exit now!
if [ $status -ne 0 ]; then exit 1; fi

# generate *.gcov files
gcov src/*.c src/*.h


set +ev


# send coverage stats to Codecov
bash <(curl -s https://codecov.io/bash)

[8]ページ先頭

©2009-2025 Movatter.jp