-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
95 lines (85 loc) · 2.57 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
dist: xenial
language: python
cache: pip
addons:
postgresql: "9.6"
stages:
- name: linting
- name: test
- name: deploy
if: tag IS present
env:
global:
- ODOO_REPO="odoo/odoo" INSTALL_ODOO="1" WKHTMLTOPDF_VERSION="0.12.5" LINT_CHECK="0"
jobs:
include:
- stage: linting
python: 3.6
script: pre-commit run --all-files
env: INSTALL_ODOO="0"
- stage: linting
python: 3.6
script:
- pip wheel -w /tmp/build --no-deps .
- twine check /tmp/build/*
env: INSTALL_ODOO="0"
- stage: test
python: 2.7
env: VERSION="8.0"
- stage: test
python: 2.7
env: VERSION="9.0"
- stage: test
python: 2.7
env: VERSION="10.0"
- stage: test
python: 3.5
env: VERSION="11.0"
- stage: test
python: 3.5
env: VERSION="12.0"
- stage: test
python: 3.6
env: VERSION="12.0"
- stage: test
python: 3.7
env: VERSION="12.0"
- stage: test
python: 3.6
env: VERSION="13.0"
- stage: test
python: 3.8-dev
env: VERSION="12.0"
- stage: test
python: 3.7
env: VERSION="master"
- stage: deploy
script: echo "Deploy to PyPi"
env: INSTALL_ODOO="0"
deploy:
provider: pypi
user: __token__
password:
secure: Xpdjpet+SZ9bCzQ/ycrf0/nvRwO4FTs4DTHU6fZL/SGlIXr3qu7xL3Q2PWjeMcHqsk9rf/AdEPIzBAh3mQ1z/cWQ2KderYFelNQZEgR8L60x0AZwDw1UsdFHW9bgDOtITHvazkPoV/9AKXW0hNeKyh3H8t7kxcq2YPA+5lHLPdm7NuqGzkpqeWm/7qHB09UHxu/8QvTfuQ4v5oVKHAiKpugogxtOk3WEmRLEr9nsN++OXccj8l1Tkkue7uREOJ9Ybu71O5EHLjqEJuQ2Qn9Ht1hPux+6bWlpSxeQDgeIExpL42OQBie8UCFtzUYOCUK2dqMY+WiSfwVwKDcIeP5VHDbrhmWkJM1MXhd27soMSOpKm9V/UsIrJRnBgowOAuR7NDtDTsip5+iyhu131uqOe4wWGaCx90uGuWRFxgOk4rLgdRxu8rZX5IHOJpNHX4dXlwY+OTaeWNZLcxK4wf8PW4p0PDu9XZooxidMOpss7bgXoEu5gcelhWps8ZXk1cmGiAKFpRtzB7TlP+JdV3t4stLCP7eiLXY4DLFxyKEOqImeRvgUecxxkk6cozd6NY4dLSB134a6Z9k48B2obKBy5hrItNmwMP0QIqiuLeox4ZQZ7JaxyoI3DeaSSDXUX00uwvwmAUGP2KEE/FVsdrlInN60CsFuAtrEmM9TkN9AfKI=
distributions: "sdist bdist_wheel"
skip_upload_docs: true
on:
repo: akretion/odoo-elasticapm
branch: master
tags: true
allow_failures:
- python: 3.8-dev
- env: VERSION="master"
- env: VERSION="12.0"
- env: VERSION="13.0"
install:
- pip install codecov
before_script:
- tests/script/install_odoo
- pip install -e .
script:
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- createdb db
- odoo-elasticapm -d db -i sale,purchase,stock --stop-after-init --test-enable
after_success:
- codecov