branches:
  - master
  - auto
  - try

host:
  distro: fedora/28/atomic
  specs:
     ram: 8192
     cpus: 4
required: true
timeout: 90m

tests:
  - rpm-ostree usroverlay && rpm -Uvh https://kojipkgs.fedoraproject.org//packages/podman/0.10.1/1.gite4a1553.fc28/x86_64/podman-0.10.1-1.gite4a1553.fc28.x86_64.rpm
  - CONTAINER_RUNTIME="podman" sh .papr_prepare.sh

artifacts:
  - build.log

context: "FAH28 - Containerized (Podman in Podman)"

---

 host:
   distro: centos/7/atomic/smoketested
   specs:
      ram: 8192
      cpus: 4
 extra-repos:
     - name: epel
       metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
       gpgcheck: 0
     - name: cri-o
       baseurl: https://cbs.centos.org/repos/virt7-container-common-candidate/$basearch/os
       gpgcheck: 0

 required: true

 timeout: 90m

 tests:
   - CONTAINER_RUNTIME="docker" sh .papr_prepare.sh

 artifacts:
   - build.log

 context: "CAH 7-smoketested - Containerized (Podman in Docker)"

---

#host:
#  distro: centos/7/cloud
#  specs:
#     ram: 8192
#     cpus: 4
#extra-repos:
#    - name: epel
#      metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
#      gpgcheck: 0
#    - name: cri-o
#      baseurl: https://cbs.centos.org/repos/virt7-container-common-candidate/$basearch/os
#      gpgcheck: 0
#
#packages:
#    - btrfs-progs-devel
#    - glib2-devel
#    - glibc-devel
#    - glibc-static
#    - git
#    - go-md2man
#    - gpgme-devel
#    - libassuan-devel
#    - libgpg-error-devel
#    - libseccomp-devel
#    - libselinux-devel
#    - ostree-devel
#    - pkgconfig
#    - make
#    - nc
#    - go-compilers-golang-compiler
#    - podman
#
#required: true
#
#timeout: 90m
#
#tests:
#    - sed 's/^expand-check.*/expand-check=0/g' -i /etc/selinux/semanage.conf
#    - sh .papr.sh -b -i -t
#
#artifacts:
#  - build.log
#
#context: "CentOS 7 Cloud"
#
#---

host:
    distro: fedora/28/cloud
    specs:
        ram: 8192
        cpus: 4
packages:
    - btrfs-progs-devel
    - glib2-devel
    - glibc-devel
    - glibc-static
    - git
    - go-md2man
    - gpgme-devel
    - libassuan-devel
    - libgpg-error-devel
    - libseccomp-devel
    - libselinux-devel
    - ostree-devel
    - pkgconfig
    - make
    - nc
    - go-compilers-golang-compiler
    - podman
    - python3-varlink
    - python3-dateutil
    - python3-psutil
    - https://kojipkgs.fedoraproject.org//packages/runc/1.0.0/55.dev.git578fe65.fc28/x86_64/runc-1.0.0-55.dev.git578fe65.fc28.x86_64.rpm

tests:
    - sed 's/^expand-check.*/expand-check=0/g' -i /etc/selinux/semanage.conf
    - yum -y reinstall container-selinux
    - sh .papr.sh -b -i -t -p

required: false

timeout: 90m
context: "Fedora 28 Cloud"

---

host:
    distro: fedora/29/cloud/pungi
    specs:
        ram: 8192
        cpus: 4
packages:
    - btrfs-progs-devel
    - glib2-devel
    - glibc-devel
    - glibc-static
    - git
    - go-md2man
    - gpgme-devel
    - libassuan-devel
    - libgpg-error-devel
    - libseccomp-devel
    - libselinux-devel
    - ostree-devel
    - pkgconfig
    - make
    - nc
    - go-compilers-golang-compiler
    - podman
    - python3-varlink
    - python3-dateutil
    - python3-psutil
    - container-selinux
    - https://kojipkgs.fedoraproject.org//packages/runc/1.0.0/54.dev.git00dc700.fc28/x86_64/runc-1.0.0-54.dev.git00dc700.fc28.x86_64.rpm

tests:
    - sed 's/^expand-check.*/expand-check=0/g' -i /etc/selinux/semanage.conf
    - dnf -y reinstall container-selinux
    - sh .papr.sh -b -i -t

required: false

timeout: 90m
context: "Fedora 29 Cloud"