]> granicus.if.org Git - zziplib/commitdiff
add testbuilds/centos8-sdl2.dockerfile
authorGuido Draheim <guidod@gmx.de>
Mon, 13 Apr 2020 14:20:25 +0000 (16:20 +0200)
committerGuido Draheim <guidod@gmx.de>
Mon, 13 Apr 2020 14:20:25 +0000 (16:20 +0200)
testbuilds.py
testbuilds/centos8-sdl2.dockerfile [new file with mode: 0644]

index 833cf7d2581ded9c4a7dc4b2da6fff4c9413eb0e..2200d7255090b870b23e55eb2aa38510a2411e2f 100755 (executable)
@@ -493,6 +493,27 @@ class ZZiplibBuildTest(unittest.TestCase):
         cmd = "docker rmi {images}:{testname}"
         sx____(cmd.format(**locals()))
         self.rm_testdir()
+    def test_312_centos8_sdl2_dockerfile(self):
+        if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+        testname=self.testname()
+        testdir = self.testdir()
+        dockerfile="testbuilds/centos8-sdl2.dockerfile"
+        addhosts = self.local_addhosts(dockerfile)
+        savename = docname(dockerfile)
+        saveto = SAVETO
+        images = IMAGES
+        cmd = "docker build . -f {dockerfile} {addhosts} --tag {images}:{testname}"
+        sh____(cmd.format(**locals()))
+        cmd = "docker rm --force {testname}"
+        sx____(cmd.format(**locals()))
+        #
+        cmd = "docker rmi {saveto}/{savename}:latest"
+        sx____(cmd.format(**locals()))
+        cmd = "docker tag {images}:{testname} {saveto}/{savename}:latest"
+        sh____(cmd.format(**locals()))
+        cmd = "docker rmi {images}:{testname}"
+        sx____(cmd.format(**locals()))
+        self.rm_testdir()
 
 
 if __name__ == "__main__":
diff --git a/testbuilds/centos8-sdl2.dockerfile b/testbuilds/centos8-sdl2.dockerfile
new file mode 100644 (file)
index 0000000..d25a3be
--- /dev/null
@@ -0,0 +1,21 @@
+FROM centos:8.1.1911
+
+RUN yum install -y yum-utils
+RUN yum-config-manager --set-enabled PowerTools
+RUN ls -l /etc/yum.repos.d
+RUN cat /etc/yum.repos.d/CentOS-PowerTools.repo
+RUN yum search sdl
+RUN yum install -y gcc zlib-devel python3 cmake make unzip zip gzip tar diffutils  SDL2-devel
+RUN mkdir src
+COPY CMakeLists.txt README COPYING.LIB ChangeLog src/
+COPY bins src/bins
+COPY docs src/docs
+COPY test src/test
+COPY SDL src/SDL
+COPY zzipwrap src/zzipwrap
+COPY zzip src/zzip
+
+RUN mkdir src/build
+RUN cd src/build && cmake ..
+RUN cd src/build && make
+RUN cd src/build && make check