dist: xenial
language: bash
services: docker
git:
  quiet: true
env:
  global:
    - TARGETS=""
matrix:
  include:
    # Run multi arch cases on only cron mode at first, as it takes 30+ minutes.
    - name: fedora30_s390x
      env: SERVICE=fedora30_s390x TARGETS="qemu build"
      # if: type = cron
    - env: SERVICE=fedora30
    - env: SERVICE=fedora29
    - env: SERVICE=fedora28
    - env: SERVICE=fedora27
    - env: SERVICE=fedora26
    - env: SERVICE=fedora_rawhide
    - env: SERVICE=intg
    - env: SERVICE=centos7
    - env: SERVICE=centos6
    - env: SERVICE=ubuntu_bionic
    - env: SERVICE=ubuntu_trusty
    - env: SERVICE=opensuse_tumbleweed
    - env: SERVICE=opensuse_leap_15
  allow_failures:
    - env: SERVICE=fedora_rawhide
  fast_finish: true
install: |
  travis_retry make ${TARGETS} SERVICE=${SERVICE}
script: |
  make test SERVICE=${SERVICE}
branches:
  only:
    - master
    # Enable "pull/*" branches to run Travis CI on forked repository.
    - /^pull\//

dist: xenial
language: bash
services: docker
git:
  quiet: true
env:
  global:
    - TARGETS=""
matrix:
  include:
    # Run multi arch cases on only cron mode at first, as it takes 30+ minutes.
    - name: fedora30_s390x
      env: SERVICE=fedora30_s390x TARGETS="qemu build"
      if: type = cron
    - env: SERVICE=fedora30
    - env: SERVICE=fedora29
    - env: SERVICE=fedora28
    - env: SERVICE=fedora27
    - env: SERVICE=fedora26
    - env: SERVICE=fedora_rawhide
    - env: SERVICE=intg
    - env: SERVICE=centos7
    - env: SERVICE=centos6
    - env: SERVICE=ubuntu_bionic
    - env: SERVICE=ubuntu_trusty
    - env: SERVICE=opensuse_tumbleweed
    - env: SERVICE=opensuse_leap_15
  allow_failures:
    - env: SERVICE=fedora_rawhide
  fast_finish: true
install: |
  travis_retry make ${TARGETS} SERVICE=${SERVICE}
script: |
  make test SERVICE=${SERVICE}
branches:
  only:
    - master
    # Enable "pull/*" branches to run Travis CI on forked repository.
    - /^pull\//

Remove comment out for s390x cron mode.
Remove comment out for s390x cron mode.
