Skip to content

Commit 76908d8

Browse files
committed
Add tox
1 parent f569dd2 commit 76908d8

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

library/tox

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Maintainers: Elisey Zanko <elisey.zanko@gmail.com> (@31z4)
2+
GitRepo: https://github.com/31z4/tox-docker.git
3+
Architectures: amd64, arm64v8, ppc64le, s390x
4+
5+
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
6+
GitCommit: 881e2f195d431ca14d1da7e2e5044c3e0ff932b7

test/config.sh

+3
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ imageTests+=(
265265
[tomcat]='
266266
tomcat-hello-world
267267
'
268+
[tox]='
269+
tox-basics
270+
'
268271
[varnish]='
269272
varnish
270273
'

test/tests/tox-basics/run.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
5+
6+
image="$1"
7+
8+
docker run --rm --volume="$dir:/tests" "$image"

test/tests/tox-basics/test.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import unittest
2+
3+
4+
class Test(unittest.TestCase):
5+
def test(self):
6+
self.assertTrue(True)

test/tests/tox-basics/tox.ini

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
envlist = py{311,310,39,38,37},black
3+
skipsdist = true
4+
skip_missing_interpreters = false
5+
6+
[testenv]
7+
commands = python -m unittest test.py
8+
9+
[testenv:black]
10+
deps = black
11+
commands = black --check test.py

0 commit comments

Comments
 (0)