forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
- docker
language: c
env:
- tag=pg11-geos37-gdal24-proj52 mode=garden
- tag=latest mode=tests
- tag=pg11-geos37-gdal24-proj52 mode=debug
- tag=pg11-geos37-gdal24-proj52 mode=coverage
- tag=pg11-geos37-gdal24-proj52 mode=usan_gcc
- tag=pg11-clang-geos37-gdal24-proj52 mode=usan_clang
- tag=pg11-geos37-gdal24-proj52 mode=nowagyu
- tag=pg11-geos37-gdal24-proj52 mode=tests
- tag=pg10-geos36-gdal23-proj49 mode=tests
- tag=pg96-geos36-gdal22-proj49 mode=tests
- tag=pg95-geos36-gdal21-proj48 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
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