-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
89 lines (81 loc) · 1.8 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
language: python
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
python:
- "3.6"
addons:
postgresql: "9.6"
apt:
packages:
- expect-dev # provides unbuffer utility
stages:
- name: linting
- name: test
- name: deploy
if: tag IS present
env:
global:
- VERSION="10.0" TESTS="1" LINT_CHECK="0" MAKEPOT="0" ODOO_REPO="odoo/odoo"
jobs:
include:
# TODO: move to GH actions
- stage: linting
python: 3.8
install: pip install pre-commit twine
script:
- pip install "urllib3>=1.25.7,<2"
- pip wheel -w /tmp/build --no-deps .
- twine check /tmp/build/*
env: TESTS="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.7
env: VERSION="13.0"
- stage: test
python: 3.6
env: VERSION="14.0"
- stage: test
python: 3.7
env: VERSION="14.0"
- stage: test
python: 3.8
env: VERSION="15.0"
- stage: test
python: 3.8
env: VERSION="16.0"
- stage: test
python: 3.6
env: VERSION="master"
# TODO: test 3.8
allow_failures:
- python: 3.8-dev
- env: VERSION="master"
install:
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- pip install -e .
- mv tests/test_helper* .
script:
- travis_run_tests
after_success:
- travis_after_tests_success