-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
90 lines (82 loc) · 3.29 KB
/
copier.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
# Configure jinja2 defaults to make syntax highlighters happy
_templates_suffix: .jinja
_subdirectory: src/
_envops:
block_end_string: "%}"
block_start_string: "{%"
comment_end_string: "#}"
comment_start_string: "{#"
keep_trailing_newline: true
variable_end_string: "}}"
variable_start_string: "{{"
#used by pylint
_preserve_symlinks: true
# keep the default name
# in order to let the user run `copier update -A`
_answers_file: .copier-answers.yml
project_name:
type: str
help: Project Name
branch_name:
type: str
choices:
- "18.0"
- "17.0"
- "16.0"
- "15.0"
- "14.0"
default: "18.0"
help: Odoo version
odoo_version:
# odoo_version is more readable
# branch_name is required by huddle, more generic
type: str
default: "{{branch_name}}"
when: false
# Remove ?
use_secret:
type: bool
help: generate docker-compose dedicate file for secret
org_name:
type: str
default: Akretion
help:
Tell me the Organization name. It's supposed to be human-readable. It will be used
in the author key of the __manifest__ files.
# do not ask the question
# but allow to change it manually
when: false
next_templates:
help: "Next templates to run. template path args"
# syntax:
# one template per line
# src_path dest_path
# data= is the answer of the curent template
# really fragile structure
# keep the empty line between each
# lines
# this syntax allows variable extrapolation
# because the result is a string
# tmpl_path if local is relative to dstDir
type: str
default: >
https://github.com/akretion/docky-odoo-template-personal.git .
https://github.com/OCA/oca-addons-repo-template.git ./odoo/local-src
when: false
# replace next_templates by tasks when copier will be able to make the diff between update and copy in tasks
# _tasks:
# - test {{_copier_conf.dst_path}} = . && copier copy --data project_name={{ project_name }} --data branch_name={{branch_name}} --data suffix_domain=localhost https://github.com/akretion/docky-odoo-template-personal.git . {{branch_name}}/ || true
# - test {{_copier_conf.dst_path}} = . && copier copy --trust --data odoo_version={{ odoo_version }} --data repo_name={{ project_name }} --data org_slug=akretion --data org_name=akretion --data repo_slug=akretion --data repo_website=https://akretion.com --data repo_description="some project" --data ci=GitHub --data odoo_test_flavor=Odoo --data use_pyproject_toml=yes --data generate_requirements_txt=no --data use_ruff=yes --data github_enable_codecov=yes --data additional_ruff_rules=[] --data rebel_module_groups=[] --data include_wkhtmltopdf=no --data github_enforce_dev_status_compatibility=no --data github_check_license=no --data github_enable_makepot=no --data github_enable_stale_action=no --data github_ci_extra_env={} --data convert_readme_fragments_to_markdown=no https://github.com/OCA/oca-addons-repo-template.git {{branch_name}}/odoo/local-src || true
# # true to be sure
# - rm --interactive=never -rf {{branch_name}}/odoo/local-src/.github
_skip_if_exists:
- frozen.yaml
- README.md # TODO how to manage readme ?
- odoo/local-src/*
- odoo/spec.yaml
- odoo/requirements.txt
- odoo/setup.py
- clear-ci.secrets.docker-compose.yml
- clear-prod.secrets.docker-compose.yml
- secrets.docker-compose.yml
- .copier-answers-personal.yml