Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2018-08-22 16:38:21 +0900
committerBenjamin Poirier <bpoirier@suse.com>2018-08-23 16:58:08 +0900
commit825f5ea98fce4a408975d5d43471e81ad02bf0d2 (patch)
treed48976cf9aadd5db35a74b7b6703602b7b70b0ff
parent678ee7d990d04a2ae1d57672759d94e015fca1c4 (diff)
git-sort: Run tests under openSUSE Leap 15.0
-rw-r--r--scripts/git_sort/tests/opensuse-15.0/Dockerfile25
-rwxr-xr-xscripts/git_sort/tests/run_all.sh8
2 files changed, 32 insertions, 1 deletions
diff --git a/scripts/git_sort/tests/opensuse-15.0/Dockerfile b/scripts/git_sort/tests/opensuse-15.0/Dockerfile
new file mode 100644
index 0000000000..0959660370
--- /dev/null
+++ b/scripts/git_sort/tests/opensuse-15.0/Dockerfile
@@ -0,0 +1,25 @@
+# https://hub.docker.com/r/opensuse/leap/
+FROM opensuse/leap:15.0 AS base
+
+RUN zypper -n ref
+
+FROM base AS packages
+
+RUN zypper -n in git python3 python3-dbm rcs
+
+RUN git config --global user.email "you@example.com"
+RUN git config --global user.name "Your Name"
+
+RUN zypper -n ar -G https://download.opensuse.org/repositories/Kernel:/tools/openSUSE_Leap_15.0/Kernel:tools.repo
+RUN zypper -n in python3-pygit2
+
+RUN zypper -n ar -G https://download.opensuse.org/repositories/home:/benjamin_poirier:/series_sort/openSUSE_Leap_15.0/home:benjamin_poirier:series_sort.repo
+RUN zypper -n in --from home_benjamin_poirier_series_sort quilt
+
+FROM packages
+
+VOLUME /scripts
+
+WORKDIR /scripts/git_sort
+
+CMD python3 -m unittest discover -v
diff --git a/scripts/git_sort/tests/run_all.sh b/scripts/git_sort/tests/run_all.sh
index 692f8b3d4f..28c8b48cf5 100755
--- a/scripts/git_sort/tests/run_all.sh
+++ b/scripts/git_sort/tests/run_all.sh
@@ -10,7 +10,13 @@ if [ $(docker image ls -q benjamin_poirier/docker_images/sle-12-sp2:latest | wc
docker import - benjamin_poirier/docker_images/sle-12-sp2
fi
-for release in sle12-sp2 sle12-sp3 opensuse-42.3 opensuse-tumbleweed; do
+for release in \
+ sle12-sp2 \
+ sle12-sp3 \
+ opensuse-42.3 \
+ opensuse-15.0 \
+ opensuse-tumbleweed \
+ ; do
echo "Building container image for $release..."
docker build -q -t gs-test-$release "$libdir/$release"
echo "Running tests in $release:"