Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
document_attachment
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
document_attachment
Commits
22e8d2670b9d
Commit
22e8d2670b9d
authored
4 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
run tests
parent
44e3b3ee04bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#3173
passed
4 years ago
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+67
-0
67 additions, 0 deletions
.gitlab-ci.yml
setup.cfg
+6
-0
6 additions, 0 deletions
setup.cfg
with
73 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
67
−
0
View file @
22e8d267
stages
:
-
test
-
prepare
-
main
black
:
stage
:
test
image
:
name
:
houzefaabba/python3-black
entrypoint
:
[
/bin/busybox
]
script
:
-
black --check -l79 .
flake8
:
stage
:
test
image
:
name
:
xcgd/flake8:3
entrypoint
:
[
/bin/busybox
]
script
:
-
flake8
isort
:
stage
:
test
image
:
xcgd/isort:odoo
script
:
-
isort --check-only --diff
get_odoo_scripts
:
stage
:
prepare
image
:
name
:
xcgd/confman:evolve
artifacts
:
paths
:
-
odoo_scripts
expire_in
:
1h
script
:
-
hg clone https://orus.io/xcg/odoo_scripts
# change to coverage topic to test
-
cd odoo_scripts
-
hg update coverage-in-tests
test
:
stage
:
main
image
:
name
:
registry.xcg.io/odoo/odoo:11.0-bionic
entrypoint
:
[
"
"
]
services
:
-
name
:
postgres:11-alpine
cache
:
paths
:
-
.cache
variables
:
POSTGRES_DB
:
test
POSTGRES_USER
:
odoo
POSTGRES_PASSWORD
:
odoo
POSTGRES_HOST_AUTH_METHOD
:
trust
DEBIAN_FRONTEND
:
noninteractive
before_script
:
-
mkdir -p $CI_PROJECT_DIR/.cache/apt/archives/partial
# Fetch odoo_scripts dependencies for do_tests
-
apt-get -q -o dir::cache::archives="$CI_PROJECT_DIR/.cache/apt" update
-
apt-get -q -y -o dir::cache::archives="$CI_PROJECT_DIR/.cache/apt" install zsh
script
:
# Run tests
-
./odoo_scripts/do_tests postgres odoo
-
python3-coverage report -m
coverage
:
'
/TOTAL.+
([0-9]{1,3}%)/'
This diff is collapsed.
Click to expand it.
setup.cfg
0 → 100644
+
6
−
0
View file @
22e8d267
[odoo_scripts]
modules
= ../document_attachment
other_sources
=
odoo_type
= odoo11
module_list
= document_attachment
module_list_tests
= document_attachment
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment