- Notifications
You must be signed in to change notification settings - Fork27
Refactoring#7
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
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
25f0e2cc21c4921464f745a630b61efd9f9ca97933138323b7c1146e1a7e152dbd287011b173f56817adc436d7f9b73f4082282d2f550b4eFile 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,5 @@ | ||
| *.gcno | ||
| *.gcda | ||
| *.gcov | ||
| *.so | ||
| *.o |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| *.o | ||
| *.so | ||
| *.swp | ||
| *.pyc | ||
| *.gcda | ||
| *.gcno | ||
| *.gcov | ||
| pg_query_state--*.sql | ||
| cscope.out | ||
| tags | ||
| Dockerfile |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| sudo: required | ||
| language: c | ||
| services: | ||
| - docker | ||
| install: | ||
| - ./mk_dockerfile.sh | ||
| - docker-compose build | ||
| script: | ||
| - docker-compose run $(bash <(curl -s https://codecov.io/env)) tests | ||
| notifications: | ||
| email: | ||
| on_success: change | ||
| on_failure: always | ||
| env: | ||
| - PG_VERSION=11 LEVEL=hardcore | ||
| - PG_VERSION=11 | ||
| - PG_VERSION=10 LEVEL=hardcore | ||
| - PG_VERSION=10 | ||
| - PG_VERSION=9.6 LEVEL=hardcore | ||
| - PG_VERSION=9.6 | ||
| matrix: | ||
| allow_failures: | ||
| - env: PG_VERSION=10 LEVEL=nightmare | ||
| - env: PG_VERSION=9.6 LEVEL=nightmare |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| FROM postgres:${PG_VERSION}-alpine | ||
| # Install dependencies | ||
| RUN apk add --no-cache \ | ||
| openssl curl \ | ||
| perl perl-ipc-run \ | ||
| make musl-dev gcc bison flex coreutils \ | ||
| zlib-dev libedit-dev \ | ||
| clang clang-analyzer \ | ||
| python2 python2-dev py2-virtualenv; | ||
| # Install fresh valgrind | ||
| RUN apk add valgrind \ | ||
| --update-cache \ | ||
| --repository http://dl-3.alpinelinux.org/alpine/edge/main; | ||
| # Environment | ||
| ENV LANG=C.UTF-8 PGDATA=/pg/data | ||
| # Make directories | ||
| RUNmkdir -p ${PGDATA} && \ | ||
| mkdir -p /pg/testdir | ||
| # Grant privileges | ||
| RUNchown postgres:postgres ${PGDATA} && \ | ||
| chown postgres:postgres /pg/testdir && \ | ||
| chmod -R a+rwx /usr/local/lib/postgresql && \ | ||
| chmod a+rwx /usr/local/share/postgresql/extension | ||
| COPY run_tests.sh /run.sh | ||
| RUN chmod 755 /run.sh | ||
| ADD . /pg/testdir | ||
| WORKDIR /pg/testdir | ||
| USER postgres | ||
| ENTRYPOINT LEVEL=${LEVEL} /run.sh |
Large diffs are not rendered by default.
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,2 @@ | ||
| 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 |
|---|---|---|
| @@ -15,11 +15,3 @@ CREATE FUNCTION pg_query_state(pid integer | ||
| , leader_pid integer) | ||
| AS 'MODULE_PATHNAME' | ||
| LANGUAGE C STRICT VOLATILE; | ||
| 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=scan-build | ||
| fi | ||
| echo PG_VERSION=${PG_VERSION} | ||
| echo LEVEL=${LEVEL} | ||
| sed \ | ||
| -e 's/${PG_VERSION}/'${PG_VERSION}/g \ | ||
| -e 's/${LEVEL}/'${LEVEL}/g \ | ||
| Dockerfile.tmpl > Dockerfile |
Uh oh!
There was an error while loading.Please reload this page.