forked from camptocamp/anthem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.37 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
50
51
52
53
54
55
56
57
58
language: python
python:
- 2.7
- 3.6
env:
- ODOOVERSION=9.0 LINT=false
- ODOOVERSION=10.0 LINT=false
- ODOOVERSION=11.0 LINT=false
- ODOOVERSION=12.0 LINT=false
- ODOOVERSION=13.0 LINT=false
matrix:
exclude:
- python: 3.6
env: ODOOVERSION=9.0 LINT=false
- python: 3.6
env: ODOOVERSION=10.0 LINT=false
- python: 2.7
env: ODOOVERSION=11.0 LINT=false
- python: 2.7
env: ODOOVERSION=12.0 LINT=false
- python: 2.7
env: ODOOVERSION=13.0 LINT=false
include:
- python: 3.6
env: LINT=true
services:
- postgresql
addons:
postgresql: "9.6"
apt:
packages:
- python-lxml # because pip installation is slow
before_script:
- 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:
- 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
deploy:
provider: pypi
skip_existing: true
user: $PYPI_USER
password: $PYPI_PASSWORD
distributions: sdist bdist_wheel
on:
repo: camptocamp/anthem
branch: master
tags: true