forked from OCA/geospatial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (40 loc) · 1.66 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
49
language: python
sudo: false
cache: pip
python:
- "3.5"
addons:
postgresql: "9.6"
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- postgis postgresql-9.6-postgis-2.3 # travis doesn't know which one to install
- postgresql-9.6-postgis-2.3-scripts # pre-installed on travis but required for runbot
env:
global:
- VERSION="12.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS="1" ODOO_REPO="OCA/OCB"
before_install:
install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- pip install geojson Shapely sphinx sphinx_bootstrap_theme sphinx-intl odoo-sphinx-autodoc responses
# This is to solve an issue with stdout file descriptor
# raising a BlockingIOError while executing pylint and returns an exit -1
# seems related to the numerous lint errors on web_view_google_map module
# https://github.com/travis-ci/travis-ci/issues/8920
- /usr/bin/env python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
before_script:
- if [ "$TESTS" -e "1" ] ; then psql -U postgres -d postgres -c "create extension postgis"; fi
- if [ "$TESTS" -e "1" ] ; then psql -U postgres -d postgres -c "create extension postgis_topology"; fi
script:
- if [ -z "$DOCS" ] ; then travis_run_tests; fi
- if [ -n "$DOCS" ] ; then ./.travis_build_doc; fi
after_success:
- if [ -z "$DOCS" ] ; then travis_after_tests_success; fi
- if [ -n "$DOCS" ] ; then ./.travis_push_doc; fi