summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2020-01-12 23:01:00 -0800
committerAdam Hupp <adam@hupp.org>2020-01-24 21:23:05 -0800
commit2d63bfa6f929857f9f3005b9552517d0f22adc47 (patch)
tree0707189e863507273c22db57dc2a2cf43bd2d9c1
parent8fefb62e93806bbeaaa1823ec5b91c4a192801b0 (diff)
downloadpython-magic-2d63bfa6f929857f9f3005b9552517d0f22adc47.tar.gz
Powershell script for running docker tests against various versions of ubuntu
-rw-r--r--test.ps111
1 files changed, 11 insertions, 0 deletions
diff --git a/test.ps1 b/test.ps1
new file mode 100644
index 0000000..14a7070
--- /dev/null
+++ b/test.ps1
@@ -0,0 +1,11 @@
+
+
+function TestInContainer($name) {
+ $TAG="python_magic/${name}:latest"
+ docker build -t $TAG -f "test/Dockerfile_${name}" .
+ docker run "python_magic/${name}:latest"
+}
+
+TestInContainer "xenial"
+TestInContainer "bionic"
+TestInContainer "focal" \ No newline at end of file