Use tox for testing inside a container #1884
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci-tox"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
I'm rewriting the
packages/Dockerfile.travis
and the corresponding script to test using tox.I'm still missing something important: surprisingly this reproduces my old issue with shutdown tests in Fedora container.
I decided to unify the docker files (at least within one distro version) and use multi stage build. Maybe you can look at
Dockerfile.bionic
and create a new stage called "tox" (or "test").I'm not familiar with the multistage builds. Maybe it's a good Idea. Also I still haven't configured a local buildbot instance to propose some changes in the
master.cfg
. So I decided to start with this test script. What I wanted to show here is that you can have 3 VMs (or containers): xenial?, bionic, focal and use them for all the checks replacing the CMD bytox
,tox -e py27-doc
or a script for building a package; then remove all the code related to travis or custom package installation from themaster.cfg
.Also I don't like the current state of the
Dockerfile.bionic
, it contains many unneeded packages and produces 2.5 GB image.