-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
.travis.yml
48 lines (40 loc) · 1.29 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
language: python
python:
- "3.5"
sudo: required # Required for docker
services:
- docker
cache:
apt: true
directories:
- $HOME/.cache/pip
addons:
postgresql: "9.6"
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- python-simplejson
- python-serial
- python-matplotlib # For runbot badges
env:
global:
- VERSION="11.0" TESTS="0" LINT_CHECK="0"
matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="runbot_buildout"
- TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="runbot_travis2docker"
before_install:
# Fix https://github.com/travis-ci/travis-ci/issues/8982#issuecomment-354357640
- python3.5 -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
install:
# the latest package on pip doesn't speak python3
- pip install https://github.com/anybox/anybox.recipe.odoo/tarball/master/anybox.recipe.odoo-1.9.3.dev0.tar.gz
- 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
script:
# TODO: add some magic to skip buildout and/or travis2docker builds if none of them changed
- travis_run_tests
after_success:
- travis_after_tests_success