This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from dreispt/better-travis
Add self tests; use Odoo official repos
- Loading branch information
Showing
10 changed files
with
113 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# WARNING: | ||
# Do not use this file as a template for you repository TravisCI configuration | ||
# Instead use the files under the "/sample_files" directory for that purpose. | ||
|
||
language: python | ||
|
||
python: | ||
- "2.7" | ||
|
||
virtualenv: | ||
system_site_packages: true | ||
|
||
env: | ||
- VERSION="master" | ||
- VERSION="8.0" | ||
- VERSION="7.0" | ||
- VERSION="6.1" | ||
# - VERSION="6.0" # Test script not ready for v6.0 | ||
|
||
install: | ||
#- git clone https://github.com/OCA/maintainer-quality-tools.git $HOME/maintainer-quality-tools | ||
- cp -r ../maintainer-quality-tools/ $HOME # for maintainer-quality-tools self tests only | ||
- export PATH=$HOME/maintainer-quality-tools/travis:$PATH | ||
- travis_install_nightly $VERSION | ||
|
||
script: | ||
- travis_run_flake8 | ||
- travis_run_tests ${VERSION} | ||
|
||
after_success: | ||
coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
# none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
{ | ||
'name': 'Empty module for tests', | ||
'version': '1.0', | ||
'depends': ['base'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
http://download.gna.org/pychart/PyChart-1.39.tar.gz | ||
babel >= 1.0 | ||
decorator | ||
docutils | ||
feedparser | ||
gdata | ||
gevent | ||
psycogreen | ||
Jinja2 | ||
#lxml - installed using apt-get | ||
mako | ||
mock | ||
passlib | ||
pillow | ||
psutil | ||
psycopg2 >= 2.2 | ||
pydot | ||
pyparsing < 2 | ||
pyPdf | ||
pyserial | ||
python-dateutil < 2 | ||
# python-ldap | ||
python-openid | ||
pytz | ||
pyusb >= 1.0.0b1 | ||
pyyaml | ||
qrcode | ||
reportlab | ||
requests | ||
simplejson | ||
unittest2 | ||
vatnumber | ||
vobject | ||
werkzeug | ||
xlwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/sh | ||
|
||
VERSION=$1 | ||
# Install the nightly version of OpenERP | ||
sudo apt-get install -qq graphviz # needed? | ||
sudo pip install QUnitSuite # web unit tests fail without this | ||
wget http://nightly.openerp.com/${VERSION}/nightly/deb/openerp_${VERSION}-latest-1_all.deb | ||
sudo dpkg -i openerp_${VERSION}-latest-1_all.deb || sudo apt-get -f install | ||
ODOO_URL="https://github.com/odoo/odoo/archive/$1.tar.gz" | ||
echo "Installing Odoo ${ODOO_URL}" | ||
wget -O odoo.tar.gz ${ODOO_URL} | ||
tar -xf odoo.tar.gz -C ../ | ||
|
||
sudo apt-get install python-lxml # because pip installation is slooow | ||
|
||
pip install QUnitSuite flake8 coveralls | ||
pip install -r $HOME/maintainer-quality-tools/travis/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters