-
Notifications
You must be signed in to change notification settings - Fork 4
/
travis_before_install
executable file
·27 lines (17 loc) · 788 Bytes
/
travis_before_install
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
#!/bin/bash
set -e
# fake db to display db selection on odoo screen FIX ME on robot files
createdb openerp_test
# OCA
git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
# Install less
ln -s `which nodejs` $HOME/maintainer-quality-tools/travis/node
npm install -g less less-plugin-clean-css
# Workaround to force using system site packages (see https://github.com/Shippable/support/issues/241#issuecomment-57947925)
rm -f $VIRTUAL_ENV/lib/python2.7/no-global-site-packages.txt
mkdir -p $HOME/buildout-cache/{eggs,downloads}
virtualenv . --system-site-packages
bin/pip install --upgrade pip setuptools zc.buildout
# Using travis buildout config
mv travis.cfg.in buildout.cfg