-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
53 lines (43 loc) · 966 Bytes
/
.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
sudo: required
language: python
python:
- "3.8"
services:
- docker
git:
depth: 1
branches:
only:
- master
env:
global:
# Variables found by default in Docker Hub builder
- IMAGE_NAME=tecnativa/doodba-qa:latest
# Postgres version to test
- DB_VERSION=12
# This will avoid deploying a lot of times the same doodba-qa image
- DEPLOY_VERSION=13.0
matrix:
- ODOO_MINOR=8.0 DB_VERSION=9.6
- ODOO_MINOR=9.0 DB_VERSION=10
- ODOO_MINOR=10.0 DB_VERSION=11
- ODOO_MINOR=11.0
- ODOO_MINOR=12.0
- ODOO_MINOR=13.0
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::=--force-confnew install docker-ce
- pip install -r requirements-ci.txt
install:
- chown -R $USER:$USER .
- chmod -R +r .
- ./hooks/build
script:
- python -m unittest -v tests
deploy:
provider: script
script: ./hooks/push
on:
branch: master
condition:
- $ODOO_MINOR = $DEPLOY_VERSION