Skip to content

Commit

Permalink
Add OS PostGIS 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
orhankislal committed Jul 3, 2019
1 parent 457c957 commit 4a31a8a
Show file tree
Hide file tree
Showing 2,109 changed files with 1,476,957 additions and 0 deletions.
75 changes: 75 additions & 0 deletions postgis/build/postgis-2.5.2/.drone-1.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This is for the drone 1.0 agent
# https://docs.drone.io/user-guide/pipeline/steps/
# https://dronie.osgeo.org #1.0 server

# See https://git.osgeo.org/gitea/postgis/postgis-docker
# todo: add docker images from https://hub.docker.com/r/postgis/postgis-build-env/tags/
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
kind: pipeline
name: pg-9.5
steps:
- name: build
image: *test-image
pull: true
commands:
- export PGVER=9.5
- service postgresql start $PGVER
- export PGPORT=`grep ^port /etc/postgresql/$PGVER/main/postgresql.conf | awk '{print $3}'`
- export PATH=/usr/lib/postgresql/$PGVER/bin:$PATH
- psql --version
- ./autogen.sh
- ./configure CFLAGS="-O0 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
- make -j
# we should maybe wait for postgresql service to startup here...
- psql -c "select version()" template1
- make check RUNTESTFLAGS=-v
- make install
- utils/check_all_upgrades.sh
`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
---
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
kind: pipeline
name: pg-9.6
steps:
- name: build
image: *test-image
pull: true
commands:
- export PGVER=9.6
- service postgresql start $PGVER
- export PGPORT=`grep ^port /etc/postgresql/$PGVER/main/postgresql.conf | awk '{print $3}'`
- export PATH=/usr/lib/postgresql/$PGVER/bin:$PATH
- psql --version
- ./autogen.sh
- ./configure CFLAGS="-O0 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
- make -j
# we should maybe wait for postgresql service to startup here...
- psql -c "select version()" template1
- make check RUNTESTFLAGS=-v
- make install
- utils/check_all_upgrades.sh
`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
---
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2
kind: pipeline
name: pg-10
steps:
- name: build
image: *test-image
pull: true
commands:
- export PGVER=10
- service postgresql start $PGVER
- export PGPORT=`grep ^port /etc/postgresql/$PGVER/main/postgresql.conf | awk '{print $3}'`
- export PATH=/usr/lib/postgresql/$PGVER/bin:$PATH
- psql --version
- ./autogen.sh
- ./configure CFLAGS="-O0 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
- make -j
# we should maybe wait for postgresql service to startup here...
- psql -c "select version()" template1
- make check RUNTESTFLAGS=-v
- make install
- utils/check_all_upgrades.sh
`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
...
34 changes: 34 additions & 0 deletions postgis/build/postgis-2.5.2/.drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See http://readme.drone.io/0.5/usage/overview

# See https://git.osgeo.org/gogs/postgis/postgis-docker
test-image: &test-image docker.kbt.io/postgis/build-test:trisquel2

matrix:
PGVER:
- 9.4
- 9.5
- 9.6
- 10

pipeline:
clone:
image: plugins/git
depth: 20
recursive: false
build:
image: *test-image
pull: true
commands:
- service postgresql start $PGVER
- export PGPORT=`grep ^port /etc/postgresql/$PGVER/main/postgresql.conf | awk '{print $3}'`
- export PATH=/usr/lib/postgresql/$PGVER/bin:$PATH
- psql --version
- ./autogen.sh
- ./configure CFLAGS="-O0 -Wall -fno-omit-frame-pointer -Werror" --without-interrupt-tests
- make
# we should maybe wait for postgresql service to startup here...
- psql -c "select version()" template1
- make check RUNTESTFLAGS=-v
- make install
- utils/check_all_upgrades.sh
`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
58 changes: 58 additions & 0 deletions postgis/build/postgis-2.5.2/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# http://editorconfig.org

# top-most EditorConfig file
root = true

# these are the defaults
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*_expected]
trim_trailing_whitespace = false

# C files want tab indentation
[*.{c,h}]
indent_style = tab

# Perl files want tab indentation
[*.pl]
indent_style = tab

# SQL files want tab indentation
[*.{sql,sql.in}]
indent_style = tab

# topology C files want space indentation
[topology/*.{c,h}]
indent_style = space
indent_size = 2

# topology C files want space indentation
[liblwgeom/lwgeom_topo.{c,h}]
indent_style = space

[liblwgeom/lwgeom_log.h]
indent_style = space

# topology SQL files want space indentation
[topology/**.{sql,sql.in}]
indent_style = space

# postgis/sfcgal.sql.in wants space indentation
[postgis/sfcgal.sql.in]
indent_style = space

# .h.in files want space indentation
[*.h.in]
indent_style = space

# Makefiles want tab indentation
[{Makefile.in,Makefile,GNUmakefile.in}]
indent_style = tab

# .bat files want CRLF
[*.bat]
end_of_line = crlf
72 changes: 72 additions & 0 deletions postgis/build/postgis-2.5.2/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
env:
matrix:
- CFLAGS="-g -Og" MATRIX_EVAL="touch check-no-trailing-blanks"
- CFLAGS="-g -O2 -fstack-protector -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
- CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror -Wall -Wextra -Wno-unused-parameter"
- CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug"

addons:
postgresql: "9.6"
apt:
packages:
- eatmydata

before_install:
- eval "${MATRIX_EVAL}"
- sudo sh -c "echo /usr/lib/libeatmydata/libeatmydata.so >> /etc/ld.so.preload"
- curl -sSfL https://github.com/mapbox/logbt/archive/v2.0.3.tar.gz | sudo tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=/usr/local
- curl -sSfL https://raw.githubusercontent.com/mapbox/logbt/30c554dd37b6c96c23fc424f75910fc6d6696f00/bin/logbt | sudo tee /usr/local/bin/logbt > /dev/null
- sudo logbt --setup
- sudo service postgresql stop 9.6
- sudo chown -hRL --from=postgres travis:travis /etc /var /tmp
- sudo usermod -u 1000 postgres
- sudo adduser travis ssl-cert
- sudo service postgresql start 9.6
- sudo add-apt-repository --yes ppa:ubuntugis/ppa
- sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update -qq
- mkdir -p /home/travis/deb && touch /home/travis/deb/__ && sudo cp -n /home/travis/deb/* /var/cache/apt/archives || true
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests libsfcgal1 libsfcgal-dev postgresql-server-dev-9.6 libxml2-utils libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex libgeos-dev libjson0-dev libgdal-dev gdb libc6-dbg
- sudo sh -c "echo deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse >> /etc/apt/sources.list"
- sudo apt-get update -qq
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests binutils libproj-dev libprotobuf-c-dev protobuf-c-compiler
- cp -n /var/cache/apt/archives/* /home/travis/deb || true
- ls -la /home/travis/deb/
- sudo ldconfig
- ./autogen.sh

after_failure:
- sudo head -n1000 /var/log/postgresql/postgresql-9.6-main.log

after_success:
- bash .github/codecov.bash

language: c

compiler: gcc

dist: trusty

cache:
ccache: true
directories:
- /home/travis/deb

script:
- ./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $CONFIGURE_FLAGS || cat config.log
- make -j
- chmod 755 /home/travis
- logbt -- make check "RUNTESTFLAGS=--verbose"
- logbt -- make check "RUNTESTFLAGS='--dumprestore --verbose'"
- sudo make install
- logbt -- make installcheck "RUNTESTFLAGS=--verbose"
- logbt -- make installcheck "RUNTESTFLAGS=--dumprestore --verbose"

notifications:
email: false
irc:
channels:
- "irc.freenode.org#postgis-activity"
on_success: change
on_failure: always
use_notice: false
16 changes: 16 additions & 0 deletions postgis/build/postgis-2.5.2/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PostGIS development planning happens via a [Trac instance](https://trac.osgeo.org/postgis/).

In order for proper scheduling of contributions acceptance/merging it
is recommended to file a ticket there and add your patch or a link
to a patch or to a public git branch where your development is ongoing.

Filing a ticket requires setting up an OSGeo account, which lets you
contribute to every project of the [Open Source Geospatial Foundation](http://www.osgeo.org/).

As we understand you might not want to setup a new account, simply
filing a pull request on one of the [PostGIS code mirrors](https://trac.osgeo.org/postgis/wiki/CodeMirrors) is also welcome,
but it is easier for such contributions to miss our radars unless
it _also_ has a matching Trac ticket.

If you intend to be involved for more than an occasional patch we
recommend you to subscribe to the [development mailing list](https://lists.osgeo.org/mailman/listinfo/postgis-devel).
Loading

0 comments on commit 4a31a8a

Please sign in to comment.