Add do-fedora-bot.sh
[bin.git] / install-rhel-tools
1 #!/bin/sh
2 # Install RHEL development tools into a toolbox
3 set -eux
4
5 sudo curl -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt https://password.corp.redhat.com/RH-IT-Root-CA.crt
6 sudo update-ca-trust
7
8 (cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo)
9 sudo dnf install -y rhpkg
10
11 # CentOS stream
12 sudo dnf copr enable -y james/centpkg
13 sudo dnf install -y centpkg streamkoji
14
15 # coverity
16 sudo dnf copr enable -y copr.devel.redhat.com/kdudka/covscan
17 sudo dnf install -y covscan-client
18
19 # 1minutetip: https://wiki.test.redhat.com/BaseOs/Projects/1minuteTIP
20 if mountpoint /mnt; then sudo umount /mnt; fi # HACK: rhts-test-env-5.0-2.fc32eng.noarch wants to fiddle with it
21 . /etc/os-release
22 sudo wget -O /etc/yum.repos.d/qa-tools.repo https://copr.devel.redhat.com/coprs/lpol/qa-tools/repo/fedora-34/lpol-qa-tools-fedora-${VERSION_ID}.repo
23 sudo wget -O /etc/yum.repos.d/beaker-client.repo http://download.lab.bos.redhat.com/beakerrepos/beaker-client-Fedora.repo
24 sudo dnf install -y qa-tools-workstation-1minutetip tmt-redhat-provision-minute