Commit 6b3c226a authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: No tests running with Debian system python

Solution: Add a job
parent 70ccd17c
FROM debian:stable-slim as debian-python
RUN apt-get update
RUN apt-get install -y gcc python3-dev python3-certifi
RUN mkdir buildout
WORKDIR /buildout
FROM debian-python
ARG PYTHON_VER
COPY doc /buildout/doc
COPY src /buildout/src
COPY zc.recipe.egg_ /buildout/zc.recipe.egg_
COPY setup.* dev.py *.rst *.txt buildout.cfg .coveragerc /buildout/
RUN python3 dev.py
...@@ -17,6 +17,8 @@ jobs: ...@@ -17,6 +17,8 @@ jobs:
- language: python - language: python
python: 3.8 python: 3.8
env: BUILD_TYPE=bare_machines env: BUILD_TYPE=bare_machines
- language: minimal
env: BUILD_TYPE=debian_sys_container
- language: minimal - language: minimal
env: PYTHON_VER=2.7 BUILD_TYPE=centos_containers env: PYTHON_VER=2.7 BUILD_TYPE=centos_containers
- language: minimal - language: minimal
......
...@@ -45,7 +45,7 @@ PYTHON_DOWNLOAD = $(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE).tgz ...@@ -45,7 +45,7 @@ PYTHON_DOWNLOAD = $(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE).tgz
BUILD_DIRS = $(PYTHON_PATH) bin build develop-eggs eggs parts BUILD_DIRS = $(PYTHON_PATH) bin build develop-eggs eggs parts
all: all_test all: all_test
.PHONY: all download_python python build test coverage docker docker_deb all_pythons all_test all_coverage .PHONY: all download_python python build test coverage docker docker_deb docker_deb_sys all_pythons all_test all_coverage
# setup python from source # setup python from source
$(PYTHON_DOWNLOAD): $(PYTHON_DOWNLOAD):
...@@ -134,5 +134,9 @@ docker_deb: ...@@ -134,5 +134,9 @@ docker_deb:
docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} . docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} .
docker run debian_buildout:python${PYTHON_VER} /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv -t abi' docker run debian_buildout:python${PYTHON_VER} /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv -t abi'
docker_deb_sys:
docker build -f .github/workflows/Dockerfile-debian-system --tag debian_system_buildout .
docker run debian_system_buildout /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv -t abi'
clean: clean:
rm -rf $(VENVS) $(PYTHON_BUILD_DIR) $(HERE)/pythons rm -rf $(VENVS) $(PYTHON_BUILD_DIR) $(HERE)/pythons
#!/bin/bash
set -x
set -e
cd ../..
docker build -f .github/workflows/Dockerfile-debian-system --tag debian_system_buildout .
docker run debian_system_buildout /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment