run_ci_tests_containers.sh 1.5 KB

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