-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (48 loc) · 1.23 KB
/
.gitlab-ci.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
---
stages:
- lint
- test
lint:
script: merchise_lint2
stage: lint
tags:
- merchise-lint
.run_tests: &run_tests
stage: test
tags:
- virtualenv
- xoeuf-tester
script:
- export CWD=`pwd`
- cd ~/src/$ODOO_WORKTREE
- git pull
- mkdir -p ~/virtualenvs
- rm -rf ~/virtualenvs/$CI_PROJECT_NAME-$ODOO_WORKTREE || true
- virtualenv -p `which $PYTHON` ~/virtualenvs/$CI_PROJECT_NAME-$ODOO_WORKTREE
- source ~/virtualenvs/$CI_PROJECT_NAME-$ODOO_WORKTREE/bin/activate
- pip install 'futures<3'
- pip install -r requirements.txt
- pip install -U "six>=1.9.0" "decorator>=4.0,<4.2" "hypothesis>=3.24"
- pip install -e .
- cd $CWD
- pip install -r requirements.txt
- pip install -e .
- export ADDONS=`find xopgi/ -maxdepth 2 -mindepth 2 -type d -name 'tests' | xargs dirname | while read f; do basename $f; done | xargs | tr " " ","`
- cd ~/src/$ODOO_WORKTREE
- echo $ADDONS
- runtests-odoo.sh -i $ADDONS
run all Odoo 10 tests:
<<: *run_tests
variables:
PYTHON: python
ODOO_WORKTREE: odoo10
only:
- branches
run all Odoo 11 tests:
<<: *run_tests
variables:
PYTHON: python3
ODOO_WORKTREE: odoo11
allow_failure: true
only:
- branches