-
Notifications
You must be signed in to change notification settings - Fork 28
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 #31 from guewen/fix-flapping-build
Fix flapping tests
- Loading branch information
Showing
12 changed files
with
65 additions
and
82 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 |
---|---|---|
@@ -1,26 +1,40 @@ | ||
language: python | ||
python: 2.7 | ||
python: | ||
- 2.7 | ||
- 3.6 | ||
|
||
env: | ||
globals: | ||
- SOURCE_CONFIG_FILE=${TRAVIS_BUILD_DIR}/tests/config/odoo-travis.cfg | ||
- ODOOVERSION=9.0 LINT=false | ||
- ODOOVERSION=10.0 LINT=false | ||
|
||
matrix: | ||
exclude: | ||
- python: 3.6 | ||
env: ODOOVERSION=9.0 LINT=false | ||
- python: 3.6 | ||
env: ODOOVERSION=10.0 LINT=false | ||
include: | ||
- python: 3.6 | ||
env: LINT=true | ||
|
||
services: | ||
- postgresql | ||
|
||
virtualenv: | ||
# needed for lxml, lxml installed with pip in the virtualenv gives an | ||
# error on travis | ||
system_site_packages: true | ||
|
||
addons: | ||
postgresql: "9.4" | ||
postgresql: "9.6" | ||
apt: | ||
packages: | ||
- python-lxml # because pip installation is slow | ||
|
||
install: | ||
- pip install flake8 invoke tox | ||
before_script: | ||
- if [ "$LINT" == false ] ; then virtualenv /tmp/venv-${ODOOVERSION} ; fi | ||
- if [ "$LINT" == false ] ; then source /tmp/venv-${ODOOVERSION}/bin/activate ; fi | ||
- if [ "$LINT" == false ] ; then pip install invoke pytest ; fi | ||
- if [ "$LINT" == false ] ; then pip install . ; fi | ||
- if [ "$LINT" == false ] ; then invoke tests.prepare-version "${ODOOVERSION}" ; fi | ||
- if [ "$LINT" == true ] ; then pip install flake8 readme_renderer ; fi | ||
|
||
script: | ||
- tox | ||
- if [ "$LINT" == false ] ; then OPENERP_SERVER=/tmp/test-anthem-config-${ODOOVERSION}.cfg py.test tests ; fi | ||
- if [ "$LINT" == true ] ; then flake8 anthem tests ; fi | ||
- if [ "$LINT" == true ] ; then python setup.py check -r -s ; fi |
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ Unreleased | |
|
||
|
||
0.10.0 (2017-09-19) | ||
------------------ | ||
------------------- | ||
|
||
**Bugfixes** | ||
|
||
|
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
import codecs | ||
import csv | ||
|
||
from past.types import basestring | ||
|
||
from ..exceptions import AnthemError | ||
|
||
|
||
|
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
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
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
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