Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2018-08-23 14:18:27 +0900
committerBenjamin Poirier <bpoirier@suse.com>2018-08-23 16:58:08 +0900
commita31a9833b0ce2a82d3e54809e60e2f2ad7d06c59 (patch)
tree8fe5f97a974552e7fe0fab285bac136240bdb891
parent825f5ea98fce4a408975d5d43471e81ad02bf0d2 (diff)
git-sort: Run tests under SLE15
-rwxr-xr-xscripts/git_sort/tests/run_all.sh1
-rw-r--r--scripts/git_sort/tests/sle15/Dockerfile25
2 files changed, 26 insertions, 0 deletions
diff --git a/scripts/git_sort/tests/run_all.sh b/scripts/git_sort/tests/run_all.sh
index 28c8b48cf5..12235a28d2 100755
--- a/scripts/git_sort/tests/run_all.sh
+++ b/scripts/git_sort/tests/run_all.sh
@@ -13,6 +13,7 @@ fi
for release in \
sle12-sp2 \
sle12-sp3 \
+ sle15 \
opensuse-42.3 \
opensuse-15.0 \
opensuse-tumbleweed \
diff --git a/scripts/git_sort/tests/sle15/Dockerfile b/scripts/git_sort/tests/sle15/Dockerfile
new file mode 100644
index 0000000000..3b08991cd6
--- /dev/null
+++ b/scripts/git_sort/tests/sle15/Dockerfile
@@ -0,0 +1,25 @@
+# http://registry.suse.de/
+FROM registry.suse.de/home/david_chang/branches/devel/docker/images/sle15/images/suse/sles15:2.0.3 AS base
+
+RUN zypper -n ref
+
+FROM base AS packages
+
+RUN zypper -n in git python3 python3-dbm rcs awk
+
+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/SLE_15/Kernel:tools.repo
+RUN zypper -n in python3-pygit2
+
+RUN zypper -n ar -G https://download.opensuse.org/repositories/home:/benjamin_poirier:/series_sort/SLE_15/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