forked from OCA/connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 1.44 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
sudo: false
cache: pip
addons:
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
language: python
python:
- '2.7'
virtualenv:
system_site_packages: true
env:
matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB"
- TRANSIFEX="1" TRANSIFEX_USER='[email protected]'
- DOCS="1"
global:
- VERSION="9.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" DOCS="0"
# travis for docs build
- secure: "lazdZGpkqFTQiu44grYAqKcaGh0cVTBlrHcBxxs43K/OH4Uc2AjMBty83zKc0ZgzizrNOsfK3Z3UHLmTNI92Vi3PtgGzA9dUmiReGO6QcE9P31Geg4pN/1Fwosv6aSpG3hejJJ8ZYpMbEPJkZyjTVpdM2r1VEcqEvFQ2xR5bEUg="
# transifex
- secure: "HLsfDkckZKfcyIFdLLYI2Q/SKBsI48QoYKJm2WSttlSIp4Bli6rYc/2WLwcKyQmkS0TITYRhKAjzBYYHZCThj77lwQgXFm5Di+MFpDbH5R5llCdQJD+A5gSs/GxzIEXX6YxVajcLe6MrI15pdv3p9Bl8K14owLXZaypvkV1XrBA="
install:
- git clone --depth=1 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 sphinx sphinx_bootstrap_theme sphinx-intl odoo-sphinx-autodoc
services:
- postgresql
script:
- if [ "$DOCS" != "1" ] ; then travis_run_tests; fi
- if [ "$DOCS" == "1" ] ; then ./.travis_build_doc; fi
after_success:
- if [ "$DOCS" != "1" ] ; then travis_after_test_success; fi
- if [ "$DOCS" == "1" ] ; then ./.travis_push_doc; fi