Seed the 14.0 series branch from the 17.0 baseline: - .odoo-series = 14.0; Dockerfile FROM odoo:14.0; manifest 14.0.0.5.0 - PORTING.md tracks the Odoo-14 checklist (biggest delta: mail templates must revert to Odoo 14's Jinja2 syntax; render API differs) - README retargeted to 14.0 with porting-in-progress notice - CHANGELOG v0.5.0 entry NOTE: seeded from 17.0 — the Odoo-14 port is NOT yet verified (PORTING.md). Not deploy-ready on the production 14.0 instance until the suite is green there. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
1.1 KiB
Docker
27 lines
1.1 KiB
Docker
FROM odoo:14.0
|
|
|
|
# Install Python testing dependencies using the system Python
|
|
RUN python3 -m pip install --no-cache-dir \
|
|
pytest \
|
|
pytest-odoo \
|
|
pytest-bdd \
|
|
pytest-cov \
|
|
pytest-html \
|
|
requests
|
|
|
|
# Copy addon to Odoo addons path
|
|
RUN mkdir -p /mnt/extra-addons && chmod 777 /mnt/extra-addons
|
|
COPY --chown=odoo:odoo addons/itsulu_blog_publisher /mnt/extra-addons/itsulu_blog_publisher
|
|
|
|
# Copy root conftest.py to parent of addons so pytest-bdd fixtures (odoo_env) are discovered
|
|
# when running pytest against /mnt/extra-addons/... (pytest traverses up to find conftest files)
|
|
COPY --chown=odoo:odoo conftest.py /mnt/extra-addons/conftest.py
|
|
|
|
# Symlink addon into Odoo's default addons directory so Odoo can find it
|
|
RUN mkdir -p /var/lib/odoo/addons && ln -s /mnt/extra-addons/itsulu_blog_publisher /var/lib/odoo/addons/itsulu_blog_publisher
|
|
|
|
# Set working directory to a temp location for test running
|
|
WORKDIR /tmp/test
|
|
|
|
# Default command runs tests (can be overridden)
|
|
CMD ["python3", "-m", "pytest", "tests/", "-v", "--html=/tmp/report.html", "--self-contained-html"]
|