[mirror] PostGIS spatial database extension to PostgreSQL https://postgis.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
1.9 KiB

services:
- docker
language: c
env:
# Use the last stable release to run more tests
#- tag=pg13-geos39-gdal31-proj71 mode=garden
- tag=pg13-geos39-gdal31-proj71 mode=tests
- tag=pg13-geos39-gdal31-proj71 mode=debug
- tag=pg13-geos39-gdal31-proj71 mode=coverage
- tag=pg13-geos39-gdal31-proj71 mode=usan_gcc
- tag=pg13-clang-geos39-gdal31-proj71 mode=usan_clang
# Run tests with different dependency combinations
- tag=latest mode=tests
- tag=pg13-geos38-gdal31-proj71 mode=tests
- tag=pg12-geos37-gdal30-proj611 mode=tests
- tag=pg11-geos37-gdal24-proj52 mode=tests
- tag=pg10-geos36-gdal23-proj49 mode=tests
- tag=pg96-geos36-gdal22-proj49 mode=tests
matrix:
allow_failures:
- env: tag=latest mode=tests
include:
- name: "Lint: python3 -m flake8 . --select=E9,F63,F72,F82"
language: python
script:
- pip install flake8 # lint Python code for syntax errors
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
script:
- echo "/tmp/logbt-coredumps/core.%p.%E" | sudo tee /proc/sys/kernel/core_pattern
- echo "FROM postgis/postgis-build-env:${tag}" > Dockerfile
- echo "ADD --chown=postgres:postgres . /src/postgis" >> Dockerfile
- echo "CMD bash ci/travis/run_${mode}.sh" >> Dockerfile
- docker build -t pgtest .
- ci_env=`bash .github/codecov_env.bash`
- docker run $ci_env --name pgtest-${TRAVIS_BUILD_NUMBER} pgtest
after_success:
- docker rm pgtest-${TRAVIS_BUILD_NUMBER}
notifications:
email: false
irc:
channels:
- "irc.freenode.org#postgis-activity"
on_success: change
on_failure: always
use_notice: false