-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Maintainers: Elisey Zanko <[email protected]> (@31z4) | ||
GitRepo: https://github.com/31z4/tox-docker.git | ||
GitFetch: refs/heads/main | ||
Architectures: amd64, arm64v8, ppc64le, s390x | ||
|
||
Tags: 4-3, 4-3.0, 4-3.0.1, 4, 4.4-3, 4.4-3.0, 4.4-3.0.1, 4.4, 4.4.7-3, 4.4.7-3.0, 4.4.7-3.0.1, 4.4.7, latest | ||
GitCommit: 881e2f195d431ca14d1da7e2e5044c3e0ff932b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,6 +265,9 @@ imageTests+=( | |
[tomcat]=' | ||
tomcat-hello-world | ||
' | ||
[tox]=' | ||
tox-basics | ||
' | ||
[varnish]=' | ||
varnish | ||
' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
set -eo pipefail | ||
|
||
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" | ||
|
||
image="$1" | ||
|
||
newImage="$("$dir/../image-name.sh" librarytest/tox-basics "$image")" | ||
"$dir/../docker-build.sh" "$dir" "$newImage" <<EOD | ||
FROM $image | ||
COPY dir/test.py tox.ini . | ||
EOD | ||
|
||
docker run --rm "$newImage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import unittest | ||
|
||
|
||
class Test(unittest.TestCase): | ||
def test(self): | ||
self.assertTrue(True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[tox] | ||
envlist = py{311,310,39,38,37},black | ||
skipsdist = true | ||
skip_missing_interpreters = false | ||
|
||
[testenv] | ||
commands = python -m unittest test.py | ||
|
||
[testenv:black] | ||
deps = black | ||
commands = black --check test.py |