-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
72 lines (65 loc) · 1.78 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: python
python:
- 3.7
- 3.10-dev
env:
- ODOOVERSION=12.0 LINT=false
- ODOOVERSION=13.0 LINT=false
- ODOOVERSION=14.0 LINT=false
- ODOOVERSION=15.0 LINT=false
- ODOOVERSION=16.0 LINT=false
matrix:
exclude:
- python: 3.10-dev
env: ODOOVERSION=11.0 LINT=false
- python: 3.7
env: ODOOVERSION=11.0 LINT=false
- python: 3.10-dev
env: ODOOVERSION=12.0 LINT=false
- python: 3.7
env: ODOOVERSION=12.0 LINT=false
- python: 3.10-dev
env: ODOOVERSION=13.0 LINT=false
- python: 3.7
env: ODOOVERSION=13.0 LINT=false
- python: 3.10-dev
env: ODOOVERSION=14.0 LINT=false
- python: 3.7
env: ODOOVERSION=14.0 LINT=false
- python: 3.10-dev
env: ODOOVERSION=15.0 LINT=false
- python: 3.7
env: ODOOVERSION=15.0 LINT=false
- python: 3.10-dev
env: ODOOVERSION=16.0 LINT=false
- python: 3.7
env: ODOOVERSION=16.0 LINT=false
include:
- python: 3.7
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 "setuptools<58" ; 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
deploy:
provider: pypi
skip_existing: true
user: $PYPI_USER
password: $PYPI_PASSWORD
distributions: sdist bdist_wheel
on:
repo: camptocamp/anthem
branch: master
tags: true