-
Notifications
You must be signed in to change notification settings - Fork 45
/
run_ci_tests_containers.sh
57 lines (46 loc) · 1.46 KB
/
run_ci_tests_containers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set -x
yum install -y podman
set -e
echo $BRANCH $REPO
if [ -n "$REPO" -a -n "$BRANCH" ]; then
git remote rm proposed || true
git gc --auto
git remote add proposed "$REPO"
GIT_TRACE=1 git fetch proposed
git checkout origin/master
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git merge --no-ff "proposed/$BRANCH" -m "Merge PR"
echo "Running tests for branch $BRANCH of repo $REPO"
echo "Last commits:"
git --no-pager log -2
fi
# F39 RPM SKIPPED - Bug with pytest+xdist, tests stuck and trigger OOM Killer - see https://pagure.io/pagure/pull-request/5463
#podman build --rm -t pagure-fedora-rpms-py3 \
# -f dev/containers/fedora-rpms-py3 \
# --build-arg branch=$BRANCH \
# --build-arg repo=$REPO \
# dev/containers
#
#if [ ! -d `pwd`/results_fedora-rpms-py3 ]; then
# mkdir `pwd`/results_fedora-rpms-py3;
#fi
#
#podman run --rm -it --name pagure-fedora-rpms-py3 \
# -v `pwd`/results_fedora-rpms-py3:/pagure/results:z \
# -e BRANCH=$BRANCH \
# -e REPO=$REPO \
# pagure-fedora-rpms-py3
podman build --rm -t pagure-fedora-pip-py3 \
-f dev/containers/fedora-pip-py3 \
--build-arg branch=$BRANCH \
--build-arg repo=$REPO \
dev/containers
if [ ! -d `pwd`/results_fedora-pip-py3 ]; then
mkdir `pwd`/results_fedora-pip-py3;
fi
podman run --rm -it --name pagure-fedora-pip-py3 \
-v `pwd`/results_fedora-pip-py3:/pagure/results:z \
-e BRANCH=$BRANCH \
-e REPO=$REPO \
pagure-fedora-pip-py3