-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
49 lines (37 loc) · 1.17 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
sudo: false
cache: pip
addons:
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
language: python
python:
- "2.7"
before_install:
- rvm install 2.3.4
env:
- VERSION="7.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" RAILS_VERSION=3.2
- VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" RAILS_VERSION=4.2
- VERSION="9.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" RAILS_VERSION=5.1
- VERSION="10.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0" RAILS_VERSION=5.1
virtualenv:
system_site_packages: true
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
before_script:
- cwd=$(pwd)
- cd ${HOME}/odoo-${VERSION}
- if [[ -f ./openerp-server ]]; then ln -s ./openerp-server ./odoo-bin; chmod +x ./odoo-bin; fi
- ./odoo-bin --addons-path=${HOME}/odoo-${VERSION}/addons --db_user=travis --db_password=admin --db_host=localhost &
- cd $cwd
- bundle install
script:
- bundle exec rake
services:
- postgresql
matrix:
allow_failures:
# - env: "VERSION=8.0"