Skip to content

Commit

Permalink
tests in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 4, 2023
1 parent 642de1e commit e9d3695
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/docker/clang-11/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ git clone https://github.com/MikeMirzayanov/testlib.git
cd testlib
git checkout dev-mikemirzayanov
cd tests
./run.sh
./run.sh v0 11
cd /
rm -rf testlib
2 changes: 1 addition & 1 deletion tests/docker/clang-latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM silkeh/clang:latest
RUN apt-get update
RUN apt-get install -y git default-jre
RUN apt-get install -y git default-jre valgrind
COPY startup.sh /
WORKDIR /
RUN chmod +x /startup.sh
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/clang-latest/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ git clone https://github.com/MikeMirzayanov/testlib.git
cd testlib
git checkout dev-mikemirzayanov
cd tests
./run.sh
./run.sh v0 23
cd /
rm -rf testlib
7 changes: 7 additions & 0 deletions tests/docker/gcc-7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gcc:7
RUN apt-get update
RUN apt-get install -y git default-jre valgrind
COPY startup.sh /
WORKDIR /
RUN chmod +x /startup.sh
CMD ["/bin/bash", "/startup.sh"]
4 changes: 4 additions & 0 deletions tests/docker/gcc-7/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"C:\Program Files\Docker\Docker"\DockerCli.exe -SwitchLinuxEngine

docker build . -t test-testlib-gcc-7

4 changes: 4 additions & 0 deletions tests/docker/gcc-7/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"C:\Program Files\Docker\Docker"\DockerCli.exe -SwitchLinuxEngine

docker run -it test-testlib-gcc-7

10 changes: 10 additions & 0 deletions tests/docker/gcc-7/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e -o pipefail

git clone https://github.com/MikeMirzayanov/testlib.git
cd testlib
git checkout dev-mikemirzayanov
cd tests
./run.sh g++ v0 11
cd /
rm -rf testlib
2 changes: 1 addition & 1 deletion tests/docker/gcc-latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gcc:latest
RUN apt-get update
RUN apt-get install -y git default-jre
RUN apt-get install -y git default-jre valgrind
COPY startup.sh /
WORKDIR /
RUN chmod +x /startup.sh
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/gcc-latest/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ git clone https://github.com/MikeMirzayanov/testlib.git
cd testlib
git checkout dev-mikemirzayanov
cd tests
./run.sh
./run.sh g++ v0 23
cd /
rm -rf testlib

0 comments on commit e9d3695

Please sign in to comment.