forked from archetipo/anybox.recipe.odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.26 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
sudo: false
python:
- "2.7"
virtualenv:
system_site_packages: false
env:
matrix:
- TEST_FOR_PIP='==1.4.1' # the minimum version we require for now
- TEST_FOR_PIP='<8.1'
- TEST_FOR_PIP='==8.1.1'
- TEST_FOR_PIP=">=8.1.2"
before_install:
# For tests running hg command
# set up username
- echo '[ui]' > ~/.hgrc
- echo 'username = anybox-test' >> ~/.hgrc
# print setuptools version
- easy_install --version
# if the wheel package is present, then pip will build an unusable wheel
# for zc.recipe.egg (see commit msg for analysis of that)
- pip uninstall -y wheel
install:
- pip install --upgrade pip${TEST_FOR_PIP}
- pip install coveralls
- pip install flake8
- pip install -e .[test]
script:
- python setup.py flake8
- python setup.py nosetests
# install sphinx only after running tests to avoid failing tests
# gracinet: after merging of the PR this commit concludes,
# installing sphinx should have no impact on the tests
- pip install sphinx sphinx_bootstrap_theme; python setup.py build_sphinx
after_script:
# Dump version of all installed packages
- echo 'Versions of all installed packages'; echo '=================================='; pip freeze -l anybox.recipe.odoo
after_success:
- coveralls